Your IP : 3.147.78.185


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyc

�
�Rec@s\dZddlmZddlmZmZdefd��YZdefd��YZd	S(
sO
requests.structures
~~~~~~~~~~~~~~~~~~~

Data structures that power Requests.
i����(tOrderedDicti(tMappingtMutableMappingtCaseInsensitiveDictcBskeZdZdd�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
    ``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((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt__init__*s	cCs||f|j|j�<dS(N(Rtlower(Rtkeytvalue((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt__setitem__0scCs|j|j�dS(Ni(RR(RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt__getitem__5scCs|j|j�=dS(N(RR(RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt__delitem__8scCsd�|jj�D�S(Ncss|]\}}|VqdS(N((t.0tcasedkeytmappedvalue((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pys	<genexpr><s(Rtvalues(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt__iter__;scCs
t|j�S(N(tlenR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt__len__>scCsd�|jj�D�S(s.Like iteritems(), but with all lowercase keys.css%|]\}}||dfVqdS(iN((Rtlowerkeytkeyval((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pys	<genexpr>Ds(Rtitems(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pytlower_itemsAscCsDt|t�rt|�}ntSt|j��t|j��kS(N(t
isinstanceRRtNotImplementedtdictR(Rtother((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt__eq__IscCst|jj��S(N(RRR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pytcopyRscCstt|j���S(N(tstrRR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt__repr__UsN(t__name__t
__module__t__doc__RR
RRRRRRR R!R#(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyRs									t
LookupDictcBs8eZdZdd�Zd�Zd�Zdd�ZRS(sDictionary lookup object.cCs ||_tt|�j�dS(N(tnametsuperR'R
(RR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyR
\s	cCsd|jS(Ns
<lookup '%s'>(R((R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyR#`scCs|jj|d�S(N(t__dict__tgetR(RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyRcscCs|jj||�S(N(R*R+(RRtdefault((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyR+hsN(R$R%R&RR
R#RR+(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyR'Ys
		N(	R&tcollectionsRtcompatRRRRR'(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt<module>sJ

?>