CasperSecurity

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

o

Ba�_��@sDdZddlmZddlmZmZGdd�de�ZGdd�de�Zd	S)
zO
requests.structures
~~~~~~~~~~~~~~~~~~~

Data structures that power Requests.
�)�OrderedDict�)�Mapping�MutableMappingc@sbeZdZdZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�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.
    NcKs*t�|_|dur
i}|j|fi|��dS�N)r�_store�update)�self�data�kwargs�r
�5/usr/lib/python3/dist-packages/requests/structures.py�__init__*szCaseInsensitiveDict.__init__cCs||f|j|��<dSr�r�lower)r
�key�valuer
r
r�__setitem__0szCaseInsensitiveDict.__setitem__cCs|j|��dS)Nrr�r
rr
r
r�__getitem__5szCaseInsensitiveDict.__getitem__cCs|j|��=dSrrrr
r
r�__delitem__8�zCaseInsensitiveDict.__delitem__cC�dd�|j��D�S)Ncss�|]\}}|VqdSrr
)�.0�casedkey�mappedvaluer
r
r�	<genexpr><s�z/CaseInsensitiveDict.__iter__.<locals>.<genexpr>)r�values�r
r
r
r�__iter__;szCaseInsensitiveDict.__iter__cCs
t|j�Sr)�lenrrr
r
r�__len__>�
zCaseInsensitiveDict.__len__cCr)z.Like iteritems(), but with all lowercase keys.css �|]\}}||dfVqdS)rNr
)r�lowerkey�keyvalr
r
rrCs
�
�
�z2CaseInsensitiveDict.lower_items.<locals>.<genexpr>)r�itemsrr
r
r�lower_itemsAs�zCaseInsensitiveDict.lower_itemscCs0t|t�r
t|�}ntSt|���t|���kSr)�
isinstancerr�NotImplemented�dictr')r
�otherr
r
r�__eq__Is

zCaseInsensitiveDict.__eq__cCst|j���Sr)rrrrr
r
r�copyR�zCaseInsensitiveDict.copycCstt|����Sr)�strr*r&rr
r
r�__repr__UrzCaseInsensitiveDict.__repr__r)�__name__�
__module__�__qualname__�__doc__rrrrr r"r'r,r-r0r
r
r
rrs
	rcs<eZdZdZd�fdd�	Zdd�Zdd�Zdd	d
�Z�ZS)�
LookupDictzDictionary lookup object.Ncs||_tt|���dSr)�name�superr5r)r
r6��	__class__r
rr\szLookupDict.__init__cCs
d|jS)Nz
<lookup '%s'>)r6rr
r
rr0`r#zLookupDict.__repr__cCs|j�|d�Sr��__dict__�getrr
r
rrcszLookupDict.__getitem__cCs|j�||�Srr:)r
r�defaultr
r
rr<hr.zLookupDict.getr)	r1r2r3r4rr0rr<�
__classcell__r
r
r8rr5Ysr5N)	r4�collectionsr�compatrrrr*r5r
r
r
r�<module>s
J
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY