Files
obitools/distutils.ext/obidistutils/serenity/pip/_vendor/requests/structures.pyc
T

45 lines
6.5 KiB
Plaintext
Raw Normal View History

2015-06-02 15:52:18 +02:00
ó
®ITc@swdZddlZddlZddlmZdefdƒYZdejfdƒYZde fd ƒYZ
dS(
sP
requests.structures
~~~~~~~~~~~~~~~~~~~
Data structures that power Requests.
iÿÿÿÿN(tislicet
IteratorProxycBs2eZdZdZdZdZdZRS(sdocstring for IteratorProxycCs
||_dS(N(ti(tselfR((sFdistutils.ext/obidistutils/serenity/pip/_vendor/requests/structures.pyt__init__scCs|jS(N(R(R((sFdistutils.ext/obidistutils/serenity/pip/_vendor/requests/structures.pyt__iter__scCsjt|jdƒrt|jƒSt|jdƒr;|jjSt|jdƒrftj|jjƒƒjSdS(Nt__len__tlentfileno(thasattrRRtostfstatRtst_size(R((sFdistutils.ext/obidistutils/serenity/pip/_vendor/requests/structures.pyRs 

cCsdjt|jd|ƒƒS(Nt(tjoinRRtNone(Rtn((sFdistutils.ext/obidistutils/serenity/pip/_vendor/requests/structures.pytread!s(t__name__t
__module__t__doc__RRRR(((sFdistutils.ext/obidistutils/serenity/pip/_vendor/requests/structures.pyRs
   tCaseInsensitiveDictcBskeZdZd dZdZdZdZdZdZ dZ
dZ d Z d
Z
RS( 
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((sFdistutils.ext/obidistutils/serenity/pip/_vendor/requests/structures.pyRAs   cCs||f|j|jƒ<dS(N(Rtlower(Rtkeytvalue((sFdistutils.ext/obidistutils/serenity/pip/_vendor/requests/structures.pyt __setitem__GscCs|j|jƒdS(Ni(RR(RR((sFdistutils.ext/obidistutils/serenity/pip/_vendor/requests/structures.pyt __getitem__LscCs|j|jƒ=dS(N(RR(RR((sFdistutils.ext/obidistutils/serenity/pip/_vendor/requests/structures.pyt __delitem__OscCsd|jjƒS(Ncss|]\}}|VqdS(N((t.0tcasedkeyt mappedvalue((sFdistutils.ext/obidistutils/serenity/pip/_vendor/requests/structures.pys <genexpr>Ss(Rtvalues(R((sFdistutils.ext/obidistutils/serenity/pip/_vendor/requests/structures.pyRRscCs