a *Na+ @sddZddlZddlZddlmZzddlmZWneyFdZYn0zddl mZ WneyndZ Yn0ddZ dd Z ze eje eWn.e efyed eje eeYn0z^z ddlZWneydZYn0eed d sdd lmZeddlmZe eWney4Yn0ddlmZededdlmZmZmZmZddlmZmZm Z m!Z!ddlm"Z"m#Z#ddl$m%Z%ddl$m&Z&ddl'm(Z(m)Z)m*Z*ddl+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3ddl4m5Z5m6Z6ddl7m8Z8ddlm9Z9m:Z:m;Z;mZ>m?Z?m@Z@mAZAddlBZBddlBmCZCeBDeEFeCejde?dddS)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 . :copyright: (c) 2017 by Kenneth Reitz. :license: Apache 2.0, see LICENSE for more details. N)RequestsDependencyWarning) __version__cCs>|d}|dgksJt|dkr.|d|\}}}t|t|t|}}}|dks`J|dkslJ|dksxJ|r|ddd\}}}t|t|t|}}}d |||fkrd ksnJnh|r2|ddd\}}}t|t|t|}}}d |||fkr*d ks:nJntd dS)N.dev0r)r rr)rr)rrr)r rrz7You need either charset_normalizer or chardet installed)splitlenappendint Exception)urllib3_versionchardet_versioncharset_normalizer_versionmajorminorpatchrl/private/var/folders/js/6pj4vh5d4zd0k6bxv74qrbhr0000gr/T/pip-target-22xwyzbs/lib/python/requests/__init__.pycheck_compatibility9s$       "&rcCsTzttt|d}Wnty,YdS0|gdkrPd|}t|tdS)Nr)rr z4Old version of cryptography ({}) may cause slowdown.) listmaprr ValueErrorformatwarningswarnr)cryptography_versionwarningrrr_check_cryptographyWs   r$zWurllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported version!HAS_SNIF) pyopenssl)DependencyWarningignore) __title____description____url__r) __build__ __author____author_email__ __license__) __copyright____cake__)utils)packages)RequestResponsePreparedRequest)requestgetheadpostrputdeleteoptions)sessionSession)codes) RequestExceptionTimeout URLRequiredTooManyRedirects HTTPErrorConnectionErrorFileModeWarningConnectTimeout ReadTimeout) NullHandlerdefaultT)r)G__doc__urllib3r exceptionsrZcharset_normalizerrr ImportErrorchardetrrr$AssertionErrorrr!rsslgetattrZurllib3.contribr&inject_into_urllib3Z cryptographyr"Zurllib3.exceptionsr' simplefilterr)r*r+r,r-r.r/r0r1r2r3modelsr4r5r6apir7r8r9r:rr;r<r=sessionsr>r? status_codesr@rArBrCrDrErFrGrHrIloggingrJ getLogger__name__ addHandlerrrrrsb#                 ( ,