U
    8h                  
   @   s(  d Z ddlZddlmZ ddlmZ dZdZdd Zdd	 Z	zeej
ee W n0 eefk
r~   ed
ej
eee Y nX zvddlmZ esedzddlZW n ek
r   dZY nX eeddsddlmZ e  ddlm
Z e	e W n ek
r   Y nX ddlmZ ede ddlZddlmZ ddlmZm Z  ddl
m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m
Z
 ddl*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2 ddlm3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z< ddl=m>Z>m?Z?m@Z@ ddlAmBZBmCZC ddlDmEZE eFeGHe  ejde5dd dS )a  
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
   >>> b'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": {
       "key1": "value1",
       "key2": "value2"
     },
     ...
   }

The other HTTP methods are supported - see `requests.api`. Full documentation
is at <https://requests.readthedocs.io>.

:copyright: (c) 2017 by Kenneth Reitz.
:license: Apache 2.0, see LICENSE for more details.
    N)urllib3   )RequestsDependencyWarningc                 C   s2  |  d} | dgkstt| dkr.| d | \}}}t|t|t|  }}}|dks`t|dkrt|dkstt|r| dd d \}}}t|t|t|  }}}d|||f  krd	k sn tn`|r.| dd d \}}}t|t|t|  }}}d
|||f  kr&dk s.n tn d S )N.dev   0r         )r
   r   r   )   r   r   )r   r   r   )   r   r   )splitAssertionErrorlenappendint)urllib3_versionchardet_versioncharset_normalizer_versionmajorminorpatch r   [C:\Users\jeffr\AppData\Local\Temp\pip-install-hfyjq797\pip\pip\_vendor\requests\__init__.pycheck_compatibility3   s$    


"&r   c                 C   sX   zt tt| d} W n tk
r.   Y d S X | dddgk rTd| }t|t d S )Nr   r   r
   r   z4Old version of cryptography ({}) may cause slowdown.)	listmapr   r   
ValueErrorformatwarningswarnr   )cryptography_versionwarningr   r   r   _check_cryptographyS   s    r#   zWurllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported version!)WINDOWSz3pip internals: don't import cryptography on WindowsHAS_SNIF)	pyopenssl)__version__)DependencyWarningignore)NullHandler)packagesutils)

__author____author_email__	__build____cake____copyright____description____license__	__title____url__r'   )deletegetheadoptionsr   postputrequest)
ConnectionErrorConnectTimeoutFileModeWarning	HTTPErrorJSONDecodeErrorReadTimeoutRequestExceptionTimeoutTooManyRedirectsURLRequired)PreparedRequestRequestResponse)Sessionsession)codesdefaultT)r   )I__doc__r   pip._vendorr   
exceptionsr   r   r   r   r#   r'   r   r   r    r   pip._internal.utils.compatr$   ImportErrorsslgetattrZpip._vendor.urllib3.contribr&   Zinject_into_urllib3Zcryptographyr!   Zpip._vendor.urllib3.exceptionsr(   simplefilterloggingr*    r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   apir6   r7   r8   r9   r   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   modelsrG   rH   rI   sessionsrJ   rK   status_codesrL   	getLogger__name__
addHandlerr   r   r   r   <module>   sd   #     

0(0