Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : NONE
ó
Tc @ sE d Z d d l Z d e j f d „ ƒ YZ d e f d „ ƒ YZ d S( sP
requests.structures
~~~~~~~~~~~~~~~~~~~
Data structures that power Requests.
iÿÿÿÿNt CaseInsensitiveDictc B sk e Z d Z d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d „ Z d
„ Z
RS( sè
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.
c K s5 t ƒ | _ | d k r! i } n | j | | d S( N( t dictt _storet Nonet update( t selft datat kwargs( ( s7 /usr/lib/python2.7/site-packages/requests/structures.pyt __init__* s c C s | | f | j | j ƒ