ok

Mini Shell

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

�

m��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/imunify360/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__0s"��%(��<���C�I�I�K�K� � � rc�L�|j|���dS)Nrr�r
rs  r�__getitem__zCaseInsensitiveDict.__getitem__5s���{�3�9�9�;�;�'��*�*rc�:�|j|���=dSr
rrs  r�__delitem__zCaseInsensitiveDict.__delitem__8s���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__;s$��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>CsC����
�
�"��6��v�a�y�!�
�
�
�
�
�
r)r�itemsr&s r�lower_itemszCaseInsensitiveDict.lower_itemsAs3��
�
��{� � �"�"�
�
�
�	
rc���t|t��rt|��}ntSt	|�����t	|�����kSr
)�
isinstancerr�NotImplemented�dictr0)r
�others  r�__eq__zCaseInsensitiveDict.__eq__Is\���e�W�%�%�	"�'��.�.�E�E�!�!��D�$�$�&�&�'�'�4��0A�0A�0C�0C�+D�+D�D�Drc�N�t|j�����Sr
)rrr%r&s r�copyzCaseInsensitiveDict.copyRs��"�4�;�#5�#5�#7�#7�8�8�8rc�^�tt|�������Sr
)�strr4r/r&s r�__repr__zCaseInsensitiveDict.__repr__Us ���4��
�
���%�%�&�&�&rr
)�__name__�
__module__�__qualname__�__doc__rrrrr'r*r0r6r8r;r rrrrs���������4$�$�$�$�0�0�0�
+�+�+�%�%�%�L�L�L� � � �
�
�
�E�E�E�9�9�9�'�'�'�'�'rrc�8��eZdZdZd�fd�	Zd�Zd�Zdd�Z�xZS)�
LookupDictzDictionary lookup object.Nc�d��||_tt|�����dSr
)�name�superrAr)r
rC�	__class__s  �rrzLookupDict.__init__\s,�����	�
�j�$���(�(�*�*�*�*�*rc��d|jzS)Nz
<lookup '%s'>)rCr&s rr;zLookupDict.__repr__`s�� �D�I�.�.rc�8�|j�|d��Sr
��__dict__�getrs  rrzLookupDict.__getitem__cs���}� � ��d�+�+�+rc�8�|j�||��Sr
rH)r
r�defaults   rrJzLookupDict.geths���}� � ��g�.�.�.rr
)	r<r=r>r?rr;rrJ�
__classcell__)rEs@rrArAYsu�������#�#�+�+�+�+�+�+�/�/�/�,�,�,�
/�/�/�/�/�/�/�/rrAN)	r?�collectionsr�compatrrrr4rAr rr�<module>rPs�����$�#�#�#�#�#�+�+�+�+�+�+�+�+�G'�G'�G'�G'�G'�.�G'�G'�G'�T/�/�/�/�/��/�/�/�/�/r

Zerion Mini Shell 1.0