ok
Direktori : /proc/thread-self/root/lib/python2.7/site-packages/pip/_vendor/requests/ |
Current File : //proc/thread-self/root/lib/python2.7/site-packages/pip/_vendor/requests/structures.pyo |
� ��abc @ 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( sO 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__0 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__5 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__8 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><