Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
contego / home / tvault / .virtenv / lib / python2.7 / site-packages / requests / structures.pyc
Size: Mime:
ó
¸EYc@sUdZddlZddlmZdejfd„ƒYZdefd„ƒYZdS(	sO
requests.structures
~~~~~~~~~~~~~~~~~~~

Data structures that power Requests.
iÿÿÿÿNi(tOrderedDicttCaseInsensitiveDictcBskeZdZdd„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(Rt_storetNonetupdate(tselftdatatkwargs((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyt__init__*s	cCs||f|j|jƒ<dS(N(Rtlower(Rtkeytvalue((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyt__setitem__0scCs|j|jƒdS(Ni(RR	(RR
((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyt__getitem__5scCs|j|jƒ=dS(N(RR	(RR
((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyt__delitem__8scCsd„|jjƒDƒS(Ncss|]\}}|VqdS(N((t.0tcasedkeytmappedvalue((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pys	<genexpr><s(Rtvalues(R((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyt__iter__;scCs
t|jƒS(N(tlenR(R((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyt__len__>scCsd„|jjƒDƒS(s.Like iteritems(), but with all lowercase keys.css%|]\}}||dfVqdS(iN((Rtlowerkeytkeyval((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pys	<genexpr>Ds(Rtitems(R((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pytlower_itemsAscCsGt|tjƒr!t|ƒ}ntSt|jƒƒt|jƒƒkS(N(t
isinstancetcollectionstMappingRtNotImplementedtdictR(Rtother((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyt__eq__IscCst|jjƒƒS(N(RRR(R((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pytcopyRscCstt|jƒƒƒS(N(tstrRR(R((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyt__repr__UsN(t__name__t
__module__t__doc__RRRR
RRRRR R!R#(((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyRs									t
LookupDictcBs8eZdZdd„Zd„Zd„Zdd„ZRS(sDictionary lookup object.cCs ||_tt|ƒjƒdS(N(tnametsuperR'R(RR(((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyR\s	cCsd|jS(Ns
<lookup '%s'>(R((R((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyR#`scCs|jj|dƒS(N(t__dict__tgetR(RR
((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyR
cscCs|jj||ƒS(N(R*R+(RR
tdefault((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyR+hsN(R$R%R&RRR#R
R+(((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyR'Ys
		(R&RtcompatRtMutableMappingRRR'(((sH/home/tvault/.virtenv/lib/python2.7/site-packages/requests/structures.pyt<module>sJ