Files
PowerToys/PythonHome/Lib/site-packages/requests/structures.pyc

45 lines
6.9 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
G<12>Sc@swdZddlZddlZddlmZdefd<00><00>YZdejfd<00><00>YZde fd <00><00>YZ
dS(
sP
requests.structures
~~~~~~~~~~~~~~~~~~~
Data structures that power Requests.
i<EFBFBD><EFBFBD><EFBFBD><EFBFBD>N(tislicet IteratorProxycBs2eZdZd<00>Zd<00>Zd<00>Zd<00>ZRS(sdocstring for IteratorProxycCs ||_dS(N(ti(tselfR((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyt__init__scCs|jS(N(R(R((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyt__iter__scCsjt|jd<00>rt|j<00>St|jd<00>r;|jjSt|jd<00>rftj|jj<00><00>jSdS(Nt__len__tlentfileno(thasattrRRtostfstatRtst_size(R((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyRs  
cCsdjt|jd|<00><00>S(Nt(tjoinRRtNone(Rtn((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pytread!s(t__name__t
__module__t__doc__RRRR(((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyRs
   tCaseInsensitiveDictcBskeZdZd d<00>Zd<00>Zd<00>Zd<00>Zd<00>Zd<00>Z d<00>Z
d<00>Z d <00>Z d
<00>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<00>|_|dkr!i}n|j||<00>dS(N(tdictt_storeRtupdate(Rtdatatkwargs((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyRAs   cCs||f|j|j<00><dS(N(Rtlower(Rtkeytvalue((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyt __setitem__GscCs|j|j<00>dS(Ni(RR(RR((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyt __getitem__LscCs|j|j<00>=dS(N(RR(RR((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyt __delitem__OscCsd<00>|jj<00>D<>S(Ncss|]\}}|VqdS(N((t.0tcasedkeyt mappedvalue((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pys <genexpr>Ss(Rtvalues(R((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyRRscCs t|j<00>S(N(RR(R((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyRUscCsd<00>|jj<00>D<>S(s.Like iteritems(), but with all lowercase keys.css%|]\}}||dfVqdS(iN((R!tlowerkeytkeyval((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pys <genexpr>[s(Rtitems(R((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyt lower_itemsXscCsGt|tj<00>r!t|<00>}ntSt|j<00><00>t|j<00><00>kS(N(t
isinstancet collectionstMappingRtNotImplementedRR((Rtother((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyt__eq__`scCst|jj<00><00>S(N(RRR$(R((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pytcopyiscCstt|j<00><00><00>S(N(tstrRR'(R((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyt__repr__lsN(RRRRRRRR RRR(R.R/R1(((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyR%s        t
LookupDictcBs8eZdZdd<00>Zd<00>Zd<00>Zdd<00>ZRS(sDictionary lookup object.cCs ||_tt|<00>j<00>dS(N(tnametsuperR2R(RR3((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyRrs cCs d|jS(Ns <lookup '%s'>(R3(R((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyR1vscCs|jj|d<00>S(N(t__dict__tgetR(RR((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyRyscCs|jj||<00>S(N(R5R6(RRtdefault((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyR6~sN(RRRRRR1RR6(((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyR2os
   ( RR
R*t itertoolsRtobjectRtMutableMappingRRR2(((sUc:\users\lifqian\appdata\local\temp\pip_build_lifqian\requests\requests\structures.pyt<module> s   J