관리-도구
편집 파일: structures.cpython-35.pyc
��Re� � @ s\ d Z d d l m Z d d l m Z m Z Gd d � d e � Z Gd d � d e � Z d S) zO requests.structures ~~~~~~~~~~~~~~~~~~~ Data structures that power Requests. � )�OrderedDict� )�Mapping�MutableMappingc @ s� e Z d Z d Z d d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)�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 K s2 t � | _ | d k r i } | j | | � d S)N)r �_store�update)�self�data�kwargs� r ��/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/structures.py�__init__* s zCaseInsensitiveDict.__init__c C s | | f | j | j � <d S)N)r �lower)r �key�valuer r r �__setitem__0 s zCaseInsensitiveDict.__setitem__c C s | j | j � d S)Nr )r r )r r r r r �__getitem__5 s zCaseInsensitiveDict.__getitem__c C s | j | j � =d S)N)r r )r r r r r �__delitem__8 s zCaseInsensitiveDict.__delitem__c C s d d � | j j � D� S)Nc s s | ] \ } } | Vq d S)Nr )�.0�casedkey�mappedvaluer r r � <genexpr><