7ReΥ
c @ sw d Z d d l Z d d l Z d d l m Z Gd d d e Z Gd d d e j Z Gd d d e Z
d S(
uP
requests.structures
~~~~~~~~~~~~~~~~~~~
Data structures that power Requests.
i N( u islicec B sJ | Ee Z d Z d Z d d Z d d Z d d Z d d Z d
S( u
IteratorProxyu docstring for IteratorProxyc C s
| | _ d S( N( u i( u selfu i( ( u8 /tmp/pip-zej_zi-build/pip/_vendor/requests/structures.pyu __init__ s u IteratorProxy.__init__c C s | j S( N( u i( u self( ( u8 /tmp/pip-zej_zi-build/pip/_vendor/requests/structures.pyu __iter__ s u IteratorProxy.__iter__c C sj t | j d r t | j St | j d r; | j j St | j d rf t j | j j j Sd S( Nu __len__u lenu fileno( u hasattru iu lenu osu fstatu filenou st_size( u self( ( u8 /tmp/pip-zej_zi-build/pip/_vendor/requests/structures.pyu __len__ s
u IteratorProxy.__len__c C s d j t | j d | S( Nu ( u joinu isliceu iu None( u selfu n( ( u8 /tmp/pip-zej_zi-build/pip/_vendor/requests/structures.pyu read! s u IteratorProxy.readN( u __name__u
__module__u __qualname__u __doc__u __init__u __iter__u __len__u read( u
__locals__( ( u8 /tmp/pip-zej_zi-build/pip/_vendor/requests/structures.pyu
IteratorProxy s
u
IteratorProxyc B s | Ee Z d Z d Z d d d Z d d Z d d Z d d Z d
d Z d d
Z
d d Z d d Z d d Z
d d Z d S( u CaseInsensitiveDictuη
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.
c K s5 t | _ | d k r! i } n | j | | d S( N( u dictu _storeu Noneu update( u selfu datau kwargs( ( u8 /tmp/pip-zej_zi-build/pip/_vendor/requests/structures.pyu __init__A s u CaseInsensitiveDict.__init__c C s | | f | j | j