B /Wbl @sZdZddlZddlZddlmZyddlmZWnek rHdZYnXyddl mZ Wnek rrdZ YnXddZ dd Z ye eje eWn0e efk red eje eeYnXy`y ddlZWnek rdZYnXeed d s&dd lmZeddlmZe eWnek r>YnXddlmZededdlZddlmZddlmZmZddlm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(mZddl)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1ddlm2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;ddlZ>m?Z?ddl@mAZAmBZBddlCmDZDeEeFGeejde4dddS)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}|dgkstt|dkr.|d|\}}}t|t|t|}}}|dks`t|dkslt|dksxt|r|ddd\}}}t|t|t|}}}d |||fkrd ksntnh|r2|ddd\}}}t|t|t|}}}d |||fkr*d ks:ntntd dS)N.dev0r)r rr)rr)rrr)r rrz7You need either charset_normalizer or chardet installed)splitAssertionErrorlenappendint Exception)urllib3_versionchardet_versioncharset_normalizer_versionmajorminorpatchr8/tmp/pip-target-ju3w756n/lib/python/requests/__init__.pycheck_compatibility:s$       "&rcCsVyttt|d}Wntk r,dSX|dddgkrRd|}t|tdS)Nrrr z4Old version of cryptography ({}) may cause slowdown.) listmaprr ValueErrorformatwarningswarnr)cryptography_versionwarningrrr_check_cryptographyYsr%zWurllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported version!HAS_SNIF) pyopenssl)DependencyWarningignore) NullHandler)packagesutils) __author____author_email__ __build____cake__ __copyright____description__ __license__ __title____url__r)deletegetheadoptionsrpostputrequest) ConnectionErrorConnectTimeoutFileModeWarning HTTPErrorJSONDecodeError ReadTimeoutRequestExceptionTimeoutTooManyRedirects URLRequired)PreparedRequestRequestResponse)Sessionsession)codesdefaultT)r)H__doc__r!urllib3 exceptionsrZcharset_normalizerrr ImportErrorchardetrrr%rrr"r sslgetattrZurllib3.contribr'inject_into_urllib3Z cryptographyr#Zurllib3.exceptionsr( simplefilterloggingr*r+r,r-r.r/r0r1r2r3r4r5apir6r7r8r9rr:r;r<r=r>r?r@rArBrCrDrErFmodelsrGrHrIsessionsrJrK status_codesrL getLogger__name__ addHandlerrrrr's\             0 (0