ok

Mini Shell

Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyo

�
�2{Yc@swdZddlZddlZddlmZdefd��YZdejfd��YZde	fd	��YZ
dS(
sP
requests.structures
~~~~~~~~~~~~~~~~~~~

Data structures that power Requests.

i����N(tislicet
IteratorProxycBs2eZdZd�Zd�Zd�Zd�ZRS(sdocstring for IteratorProxycCs
||_dS(N(ti(tselfR((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyt__init__scCs|jS(N(R(R((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyt__iter__scCsjt|jd�rt|j�St|jd�r;|jjSt|jd�rftj|jj��jSdS(Nt__len__tlentfileno(thasattrRRtostfstatRtst_size(R((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyRs

cCsdjt|jd|��S(Nt(tjoinRRtNone(Rtn((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pytread!s(t__name__t
__module__t__doc__RRRR(((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyRs
			tCaseInsensitiveDictcBskeZdZdd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
RS(s�
    A case-insensitive ``dict``-like object.

    Implements all methods and operations of
    ``collections.MutableMapping`` as well as dict's ``copy``. Also
    provides ``lower_items``.

    All keys are expected to be strings. The structure remembers the
    case of the last key to be set, and ``iter(instance)``,
    ``keys()``, ``items()``, ``iterkeys()``, and ``iteritems()``
    will contain case-sensitive keys. However, querying and contains
    testing is case insensitive:

        cid = CaseInsensitiveDict()
        cid['Accept'] = 'application/json'
        cid['aCCEPT'] == 'application/json'  # True
        list(cid) == ['Accept']  # True

    For example, ``headers['content-encoding']`` will return the
    value of a ``'Content-Encoding'`` response header, regardless
    of how the header name was originally stored.

    If the constructor, ``.update``, or equality comparison
    operations are given keys that have equal ``.lower()``s, the
    behavior is undefined.

    cKs5t�|_|dkr!i}n|j||�dS(N(tdictt_storeRtupdate(Rtdatatkwargs((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyRAs	cCs||f|j|j�<dS(N(Rtlower(Rtkeytvalue((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyt__setitem__GscCs|j|j�dS(Ni(RR(RR((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyt__getitem__LscCs|j|j�=dS(N(RR(RR((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyt__delitem__OscCsd�|jj�D�S(Ncss|]\}}|VqdS(N((t.0tcasedkeytmappedvalue((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pys	<genexpr>Ss(Rtvalues(R((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyRRscCs
t|j�S(N(RR(R((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyRUscCsd�|jj�D�S(s.Like iteritems(), but with all lowercase keys.css%|]\}}||dfVqdS(iN((R!tlowerkeytkeyval((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pys	<genexpr>[s(Rtitems(R((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pytlower_itemsXscCsGt|tj�r!t|�}ntSt|j��t|j��kS(N(t
isinstancetcollectionstMappingRtNotImplementedRR((Rtother((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyt__eq__`scCst|jj��S(N(RRR$(R((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pytcopyiscCstt|j���S(N(tstrRR'(R((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyt__repr__lsN(RRRRRRRR RRR(R.R/R1(((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyR%s									t
LookupDictcBs8eZdZdd�Zd�Zd�Zdd�ZRS(sDictionary lookup object.cCs ||_tt|�j�dS(N(tnametsuperR2R(RR3((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyRrs	cCsd|jS(Ns
<lookup '%s'>(R3(R((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyR1vscCs|jj|d�S(N(t__dict__tgetR(RR((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyRyscCs|jj||�S(N(R5R6(RRtdefault((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyR6~sN(RRRRRR1RR6(((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyR2os
		(RR
R*t	itertoolsRtobjectRtMutableMappingRRR2(((sP/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/requests/structures.pyt<module>	sJ

Zerion Mini Shell 1.0