Server IP : 111.118.215.189 / Your IP : 18.225.254.235 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /lib/python2.7/site-packages/pip/_vendor/requests/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
� r2Wc @ sU d Z d d l Z d d l m Z d e j f d � � YZ d e f d � � YZ d S( sP requests.structures ~~~~~~~~~~~~~~~~~~~ Data structures that power Requests. i����Ni ( t OrderedDictt 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( R t _storet Nonet update( t selft datat kwargs( ( sC /usr/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt __init__, s c C s | | f | j | j � <d S( N( R t lower( R t keyt value( ( sC /usr/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt __setitem__2 s c C s | j | j � d S( Ni ( R R ( R R ( ( sC /usr/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt __getitem__7 s c C s | j | j � =d S( N( R R ( R R ( ( sC /usr/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyt __delitem__: s c C s d � | j j � D� S( Nc s s | ] \ } } | Vq d S( N( ( t .0t casedkeyt mappedvalue( ( sC /usr/lib/python2.7/site-packages/pip/_vendor/requests/structures.pys <genexpr>>