ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/requests/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/requests/__pycache__/structures.cpython-311.pyc

�

�܋f`��^�dZddlmZddlmZmZGd�de��ZGd�de��Zd	S)
zO
requests.structures
~~~~~~~~~~~~~~~~~~~

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

Zerion Mini Shell 1.0