U
    —ùiÐ  ã                
   @   sZ  d Z ddlZddlZddlmZ zddlmZ W n ek
rH   dZY nX zddl	mZ
 W n ek
rr   dZ
Y nX 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 z`zddlZW n ek
rî   dZY nX eeddƒ�s&d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.m/Z/m0Z0m1Z1 ddlm2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z; ddl<m=Z=m>Z>m?Z? ddl@mAZAmBZB ddlCmDZD e EeF¡ Geƒ ¡ ejde4d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é   )ÚRequestsDependencyWarning)Ú__version__c                 C   s>  |   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rÆd	k sÌn t‚nl|�r.|  d¡d d… \}}}t|ƒt|ƒt|ƒ  }}}d
|||f  k�r&dk �s:n t‚nt dt¡ d S )NÚ.Údevé   Ú0r   é   é   )r
   r   r   )é   r   r   )r   r   r   )é   r   r   zYUnable to find acceptable character detection dependency (chardet or charset_normalizer).)ÚsplitÚAssertionErrorÚlenÚappendÚintÚwarningsÚwarnr   )Úurllib3_versionÚchardet_versionÚcharset_normalizer_versionÚmajorÚminorÚpatch© r   ú5/tmp/pip-unpacked-wheel-p5jwk5cn/requests/__init__.pyÚcheck_compatibility:   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Úformatr   r   r   )Úcryptography_versionÚwarningr   r   r   Ú_check_cryptography]   s    ÿr#   zWurllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported version!ÚHAS_SNIF)Ú	pyopenssl)Ú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   )HÚ__doc__r   Úurllib3Ú
exceptionsr   Zcharset_normalizerr   r   ÚImportErrorÚchardetr   r   r#   r   r   r   r    ÚsslÚgetattrZurllib3.contribr%   Úinject_into_urllib3Zcryptographyr!   Zurllib3.exceptionsr&   ÚsimplefilterÚloggingr(   Ú r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   Úapir4   r5   r6   r7   r   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   ÚmodelsrE   rF   rG   ÚsessionsrH   rI   Ústatus_codesrJ   Ú	getLoggerÚ__name__Ú
addHandlerr   r   r   r   Ú<module>   sj   #

#  ÿ  þû

0(0