%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/requests/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/requests/__pycache__/structures.cpython-312.pyc

�

�kd`��P�dZddlmZddlmZmZGd�de�ZGd�de�Zy	)
zO
requests.structures
~~~~~~~~~~~~~~~~~~~

Data structures that power Requests.
�)�OrderedDict�)�Mapping�MutableMappingc�N�eZdZdZd
d�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
y)�CaseInsensitiveDicta�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.
    Nc�P�t�|_|�i}|j|fi|��y�N)r�_store�update)�self�data�kwargss   �5/usr/lib/python3/dist-packages/requests/structures.py�__init__zCaseInsensitiveDict.__init__(s(��!�m����<��D�����D�#�F�#�c�B�||f|j|j�<yr
�r�lower)r
�key�values   r�__setitem__zCaseInsensitiveDict.__setitem__.s��%(��<����C�I�I�K� rc�B�|j|j�dS)Nrr�r
rs  r�__getitem__zCaseInsensitiveDict.__getitem__3s���{�{�3�9�9�;�'��*�*rc�:�|j|j�=yr
rrs  r�__delitem__zCaseInsensitiveDict.__delitem__6s���K�K��	�	��$rc�D�d�|jj�D�S)Nc3�&K�|]	\}}|���y�wr
�)�.0�casedkey�mappedvalues   r�	<genexpr>z/CaseInsensitiveDict.__iter__.<locals>.<genexpr>:s����K�2�X�{��K�s�)r�values�r
s r�__iter__zCaseInsensitiveDict.__iter__9s��K�d�k�k�6H�6H�6J�K�Krc�,�t|j�Sr
)�lenrr&s r�__len__zCaseInsensitiveDict.__len__<s���4�;�;��rc�D�d�|jj�D�S)z.Like iteritems(), but with all lowercase keys.c3�0K�|]\}}||df���y�w)rNr )r!�lowerkey�keyvals   rr$z2CaseInsensitiveDict.lower_items.<locals>.<genexpr>As����T�*<�8�V��6�!�9�%�T�s�)r�itemsr&s r�lower_itemszCaseInsensitiveDict.lower_items?s��T����@Q�@Q�@S�T�Trc��t|t�rt|�}ntSt	|j��t	|j��k(Sr
)�
isinstancerr�NotImplemented�dictr0)r
�others  r�__eq__zCaseInsensitiveDict.__eq__CsC���e�W�%�'��.�E�!�!��D�$�$�&�'�4��0A�0A�0C�+D�D�Drc�H�t|jj��Sr
)rrr%r&s r�copyzCaseInsensitiveDict.copyLs��"�4�;�;�#5�#5�#7�8�8rc�F�tt|j���Sr
)�strr4r/r&s r�__repr__zCaseInsensitiveDict.__repr__Os���4��
�
��%�&�&rr
)�__name__�
__module__�__qualname__�__doc__rrrrr'r*r0r6r8r;r rrrr
s<���4$�0�
+�%�L� �U�E�9�'rrc�8��eZdZdZd�fd�	Zd�Zd�Zdd�Z�xZS)�
LookupDictzDictionary lookup object.c�0��||_t�|�	�yr
)�name�superr)r
rC�	__class__s  �rrzLookupDict.__init__Vs�����	�
���rc�"�d|j�d�S)Nz	<lookup 'z'>)rCr&s rr;zLookupDict.__repr__Zs���4�9�9�+�R�(�(rc�:�|jj|d�Sr
��__dict__�getrs  rrzLookupDict.__getitem__]s���}�}� � ��d�+�+rc�:�|jj||�Sr
rH)r
r�defaults   rrJzLookupDict.getbs���}�}� � ��g�.�.rr
)	r<r=r>r?rr;rrJ�
__classcell__)rEs@rrArASs���#��)�,�
/rrAN)	r?�collectionsr�compatrrrr4rAr rr�<module>rPs-���$�+�C'�.�C'�L/��/r

Zerion Mini Shell 1.0