ó œ0{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/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyt__init__scCs|jS(N(R(R((sP/opt/alt/python34/lib/python3.4/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/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyRs   cCsdjt|jd|ƒƒS(Nt(tjoinRRtNone(Rtn((sP/opt/alt/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pytread!s(t__name__t __module__t__doc__RRRR(((sP/opt/alt/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyRs    tCaseInsensitiveDictcBskeZdZd d„Zd„Zd„Zd„Zd„Zd„Z d„Z d„Z d „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/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyRAs   cCs||f|j|jƒSs(Rtvalues(R((sP/opt/alt/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyRRscCs t|jƒS(N(RR(R((sP/opt/alt/python34/lib/python3.4/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/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pys [s(Rtitems(R((sP/opt/alt/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyt lower_itemsXscCsGt|tjƒr!t|ƒ}ntSt|jƒƒt|jƒƒkS(N(t isinstancet collectionstMappingRtNotImplementedRR((Rtother((sP/opt/alt/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyt__eq__`scCst|jjƒƒS(N(RRR$(R((sP/opt/alt/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pytcopyiscCstt|jƒƒƒS(N(tstrRR'(R((sP/opt/alt/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyt__repr__lsN(RRRRRRRR RRR(R.R/R1(((sP/opt/alt/python34/lib/python3.4/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/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyRrs cCs d|jS(Ns (R3(R((sP/opt/alt/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyR1vscCs|jj|dƒS(N(t__dict__tgetR(RR((sP/opt/alt/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyRyscCs|jj||ƒS(N(R5R6(RRtdefault((sP/opt/alt/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyR6~sN(RRRRRR1RR6(((sP/opt/alt/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyR2os    ( RR R*t itertoolsRtobjectRtMutableMappingRRR2(((sP/opt/alt/python34/lib/python3.4/site-packages/pip/_vendor/requests/structures.pyt s   J