File: //opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/structures.pyo
�
+�Rec           @   s\   d  Z  d d l m Z d d l m Z m Z d e f d �  �  YZ d e f d �  �  YZ d	 S(
   sO   
requests.structures
~~~~~~~~~~~~~~~~~~~
Data structures that power Requests.
i����(   t   OrderedDicti   (   t   Mappingt   MutableMappingt   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
    ``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(    (    sP   /opt/alt/python35/lib/python3.5/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(    (    sP   /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/structures.pyt   __setitem__0   s    c         C   s   |  j  | j �  d S(   Ni   (   R   R   (   R   R   (    (    sP   /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/structures.pyt   __getitem__5   s    c         C   s   |  j  | j �  =d  S(   N(   R   R   (   R   R   (    (    sP   /opt/alt/python35/lib/python3.5/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(    (    sP   /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/structures.pys	   <genexpr><