3 |`“hã @sªdZddlZddlZddlZddlmZdd„Zdd„ZyeejejƒWn0e e fk rzej d j ejejƒeƒYnXdd l mZejd eƒdd lmZmZmZmZdd lmZmZmZmZddlmZmZddlmZddlmZddlmZmZmZddl m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(ddl)m*Z*m+Z+ddl,m-Z-ddlm.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6ddl7Z7ddl7m8Z8e7j9e:ƒj;e8ƒƒejde4dd�dS)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 >>> '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 . :copyright: (c) 2017 by Kenneth Reitz. :license: Apache 2.0, see LICENSE for more details. éNé)ÚRequestsDependencyWarningcCsÔ|jdƒ}|dgkst‚t|ƒdkr.|jdƒ|\}}}t|ƒt|ƒt|ƒ}}}|dks`t‚|dkslt‚|dksxt‚|jdƒdd…\}}}t|ƒt|ƒt|ƒ}}}|dks¸t‚|dksÄt‚|dksÐt‚dS) NÚ.ZdevéÚ0rééé)ÚsplitÚAssertionErrorÚlenÚappendÚint)Zurllib3_versionZchardet_versionÚmajorÚminorÚpatch©rú/usr/lib/python3.6/__init__.pyÚcheck_compatibility1s         rc CsVyttt|jdƒƒƒ}Wntk r,dSX|dddgkrRdj|ƒ}tj|tƒdS)Nrrr éz4Old version of cryptography ({}) may cause slowdown.) ÚlistÚmaprr Ú ValueErrorÚformatÚwarningsÚwarnr)Zcryptography_versionZwarningrrrÚ_check_cryptographyJs rz?urllib3 ({}) or chardet ({}) doesn't match a supported version!)ÚDependencyWarningÚignore)Ú __title__Ú__description__Ú__url__Ú __version__)Ú __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ÚdefaultT)r )<Ú__doc__Zurllib3ZchardetrÚ exceptionsrrrr"r rrrZurllib3.exceptionsrÚ simplefilterrr r!r#r$r%r&r'r(Úr)r*Zmodelsr+r,r-Zapir.r/r0r1rr2r3r4Zsessionsr5r6Z status_codesr7r8r9r:r;r<r=r>r?r@ZloggingrAZ getLoggerÚ__name__Z addHandlerrrrrÚ)s8        ( ,