
‡Kðh-  ã               @   sÕ  d  Z  d d l Z d d l Z d d l Z d d l m Z d d „  Z d d „  Z y e e j e j ƒ Wn: e	 e
 f k
 r¥ e j d	 j e j e j ƒ e ƒ Yn Xyu y d d l Z Wn e k
 rÓ d Z Yn Xe e d
 d ƒ sd d l m Z e j ƒ  d d l m Z e e ƒ Wn e k
 r/Yn Xd 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. m/ Z/ m0 Z0 d d l1 m2 Z2 m3 Z3 d d l4 m5 Z5 d d l m6 Z6 m7 Z7 m8 Z8 m9 Z9 m: Z: m; Z; m< Z< m= Z= m> Z> d d l? Z? d d l? m@ Z@ e? jA eB ƒ jC e@ ƒ  ƒ e j d e< d 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é   )ÚRequestsDependencyWarningc             C   s%  |  j  d ƒ }  |  d g k s$ t ‚ t |  ƒ d k rC |  j d ƒ |  \ } } } t | ƒ t | ƒ t | ƒ } } } | d k sŠ t ‚ | d k sœ t ‚ | d k s® t ‚ | j  d ƒ d  d … \ } } } t | ƒ t | ƒ t | ƒ } } } d | | | f k od k  n s!t ‚ d  S)NÚ.Údevé   Ú0r   é   é   é   r   é   )r
   r   r   )r   r   r   )ÚsplitÚAssertionErrorÚlenÚappendÚint)Úurllib3_versionÚchardet_versionÚmajorÚminorÚpatch© r   úM/mod/web/acousticsspace/venv/lib/python3.5/site-packages/requests/__init__.pyÚcheck_compatibility1   s    &"&r   c             C   ss   y" t  t t |  j d ƒ ƒ ƒ }  Wn t k
 r: d  SYn X|  d d d g k  ro d j |  ƒ } t j | t ƒ d  S)Nr   r   r
   é   z4Old version of cryptography ({}) may cause slowdown.)	ÚlistÚmapr   r   Ú
ValueErrorÚformatÚwarningsÚwarnr   )Úcryptography_versionÚwarningr   r   r   Ú_check_cryptographyH   s    "	r"   z?urllib3 ({}) or chardet ({}) doesn't match a supported version!ÚHAS_SNIF)Ú	pyopenssl)Ú__version__)ÚDependencyWarningÚignore)Ú	__title__Ú__description__Ú__url__r%   )Ú	__build__Ú
__author__Ú__author_email__Ú__license__)Ú__copyright__Ú__cake__)Úutils)Úpackages)ÚRequestÚResponseÚPreparedRequest)ÚrequestÚgetÚheadÚpostr   ÚputÚdeleteÚoptions)ÚsessionÚSession)Úcodes)	ÚRequestExceptionÚTimeoutÚURLRequiredÚTooManyRedirectsÚ	HTTPErrorÚConnectionErrorÚFileModeWarningÚConnectTimeoutÚReadTimeout)ÚNullHandlerÚdefaultr   T)DÚ__doc__Úurllib3Úchardetr   Ú
exceptionsr   r   r"   r%   r   r   r   r   ÚsslÚImportErrorÚgetattrZurllib3.contribr$   Úinject_into_urllib3Zcryptographyr    Zurllib3.exceptionsr&   Úsimplefilterr(   r)   r*   r+   r,   r-   r.   r/   r0   Ú r1   r2   Úmodelsr3   r4   r5   Úapir6   r7   r8   r9   r   r:   r;   r<   Úsessionsr=   r>   Ústatus_codesr?   r@   rA   rB   rC   rD   rE   rF   rG   rH   ÚloggingrI   Ú	getLoggerÚ__name__Ú
addHandlerr   r   r   r   Ú<module>)   sP   
"":@