ó
'^c           @   są  d  Z  d d l m Z d d l m Z d d l Z d d l m Z d   Z d   Z y e e j	 e j	  Wn9 e
 e f k
 rĶ e j d	 j e j	 e j	  e  n Xd d
 l m Z e sy8 d d l m Z e j   d d l m	 Z e e  Wqe k
 rqXn  d d l m Z e j d e  d d l	 m Z m Z m Z m	 Z	 d d l	 m Z m Z m Z m Z d d l	 m  Z  m! Z! d d l" m# Z# d d l" m$ Z$ d d l% m& Z& m' Z' m( Z( d d l) m* Z* m+ Z+ m, Z, m- Z- m. Z. m/ Z/ m0 Z0 m1 Z1 d d l2 m3 Z3 m4 Z4 d d l5 m6 Z6 d d l m7 Z7 m8 Z8 m9 Z9 m: Z: m; Z; m< Z< m= Z= m> Z> m? Z? d d l@ Z@ d d l@ mA ZA e@ jB eC  jD eA    e j d e= d eE d S(   sô  
Requests HTTP Library
~~~~~~~~~~~~~~~~~~~~~

Requests is an HTTP library, written in Python, for human beings. Basic GET
usage:

   >>> import requests
   >>> r = requests.get('https://www.python.org')
   >>> r.status_code
   200
   >>> 'Python is a programming language' in r.content
   True

... or POST:

   >>> payload = dict(key1='value1', key2='value2')
   >>> r = requests.post('https://httpbin.org/post', data=payload)
   >>> print(r.text)
   {
     ...
     "form": {
       "key2": "value2",
       "key1": "value1"
     },
     ...
   }

The other HTTP methods are supported - see `requests.api`. Full documentation
is at <http://python-requests.org>.

:copyright: (c) 2017 by Kenneth Reitz.
:license: Apache 2.0, see LICENSE for more details.
iĸĸĸĸ(   t   urllib3(   t   chardetNi   (   t   RequestsDependencyWarningc         C   s-  |  j  d  }  |  d g k s$ t  t |   d k rF |  j d  n  |  \ } } } t |  t |  t |  } } } | d k s t  | d k s t  | d k są t  | j  d  d  \ } } } t |  t |  t |  } } } | d k st  | d k  st  | d k s)t  d  S(	   Nt   .t   devi   t   0i   i   i   i   (   t   splitt   AssertionErrort   lent   appendt   int(   t   urllib3_versiont   chardet_versiont   majort   minort   patch(    (    s:   /tmp/pip-build-eiI0Wo/pip/pip/_vendor/requests/__init__.pyt   check_compatibility1   s    &&c         C   sr   y" t  t t |  j d    }  Wn t k
 r6 d  SX|  d d d g k  rn d j |   } t j | t  n  d  S(   NR   i   i   i   s4   Old version of cryptography ({}) may cause slowdown.(	   t   listt   mapR
   R   t
   ValueErrort   formatt   warningst   warnR   (   t   cryptography_versiont   warning(    (    s:   /tmp/pip-build-eiI0Wo/pip/pip/_vendor/requests/__init__.pyt   _check_cryptographyJ   s    "s?   urllib3 ({}) or chardet ({}) doesn't match a supported version!(   t   WINDOWS(   t	   pyopenssl(   t   __version__(   t   DependencyWarningt   ignore(   t	   __title__t   __description__t   __url__R   (   t	   __build__t
   __author__t   __author_email__t   __license__(   t   __copyright__t   __cake__(   t   utils(   t   packages(   t   Requestt   Responset   PreparedRequest(   t   requestt   gett   headt   postR   t   putt   deletet   options(   t   sessiont   Session(   t   codes(	   t   RequestExceptiont   Timeoutt   URLRequiredt   TooManyRedirectst	   HTTPErrort   ConnectionErrort   FileModeWarningt   ConnectTimeoutt   ReadTimeout(   t   NullHandlert   defaultR	   (F   t   __doc__t   pip._vendorR    R   R   t
   exceptionsR   R   R   R   R   R   R   R   t   pip._internal.utils.compatR   t   pip._vendor.urllib3.contribR   t   inject_into_urllib3t   cryptographyR   t   ImportErrort   pip._vendor.urllib3.exceptionsR   t   simplefilterR   R    R!   R"   R#   R$   R%   R&   R'   t    R(   R)   t   modelsR*   R+   R,   t   apiR-   R.   R/   R0   R   R1   R2   R3   t   sessionsR4   R5   t   status_codesR6   R7   R8   R9   R:   R;   R<   R=   R>   R?   t   loggingR@   t	   getLoggert   __name__t
   addHandlert   True(    (    (    s:   /tmp/pip-build-eiI0Wo/pip/pip/_vendor/requests/__init__.pyt   <module>)   sJ   		
"":@