%PDF- %PDF-
| Direktori : /snap/core/current/usr/lib/python3/dist-packages/requests/__pycache__/ |
| Current File : //snap/core/current/usr/lib/python3/dist-packages/requests/__pycache__/structures.cpython-35.pyc |
~�V� � @ sE d Z d d l Z Gd d � d e j � Z Gd d � d e � Z d S)zP
requests.structures
~~~~~~~~~~~~~~~~~~~
Data structures that power Requests.
� Nc @ s� e 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)�CaseInsensitiveDicta�
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.
Nc K s2 t � | _ | d k r i } | j | | � d S)N)�dict�_store�update)�self�data�kwargs� r �5/usr/lib/python3/dist-packages/requests/structures.py�__init__* s zCaseInsensitiveDict.__init__c C s | | f | j | j � <d S)N)r �lower)r �key�valuer r r
�__setitem__0 s zCaseInsensitiveDict.__setitem__c C s | j | j � d S)N� )r r )r r
r r r
�__getitem__5 s zCaseInsensitiveDict.__getitem__c C s | j | j � =d S)N)r r )r r
r r r
�__delitem__8 s zCaseInsensitiveDict.__delitem__c C s d d � | j j � D� S)Nc s s | ] \ } } | Vq d S)Nr )�.0ZcasedkeyZmappedvaluer r r
� <genexpr><