U .e @sdZddlmZddlmZddlZddlmZddZd d Zzeej ej Wn0e e fk re d ej ej eYnXdd lmZesz,dd lmZeddlm ZeeWnek rYnXddlmZededdl mZmZmZm Z ddl mZmZmZmZddl m 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-m.Z.m/Z/m0Z0m1Z1ddl2m3Z3m4Z4ddl5m6Z6ddlm7Z7m8Z8m9Z9m:Z:m;Z;mZ>m?Z?ddl@Z@ddl@mAZAe@BeCDeAejde=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 >>> '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. )urllib3)chardetN)RequestsDependencyWarningcCs|d}|dgkstt|dkr.|d|\}}}t|t|t|}}}|dks`t|dkslt|dksxt|ddd\}}}t|t|t|}}}|dkst|dkst|dkstdS) N.Zdev0r)splitAssertionErrorlenappendint)Zurllib3_versionZchardet_versionmajorminorpatchrA/usr/lib/python3.8/site-packages/pip/_vendor/requests/__init__.pycheck_compatibility1s         rcCsXzttt|d}Wntk r.YdSX|dddgkrTd|}t|tdS)Nrrr z4Old version of cryptography ({}) may cause slowdown.) listmaprr ValueErrorformatwarningswarnr)cryptography_versionZwarningrrr_check_cryptographyJs rz?urllib3 ({}) or chardet ({}) doesn't match a supported version!)WINDOWS) pyopenssl) __version__)DependencyWarningignore) __title____description____url__r") __build__ __author____author_email__ __license__) __copyright____cake__)utils)packages)RequestResponsePreparedRequest)requestgetheadpostrputdeleteoptions)sessionSession)codes) RequestExceptionTimeout URLRequiredTooManyRedirects HTTPErrorConnectionErrorFileModeWarningConnectTimeout ReadTimeout) NullHandlerdefaultT)r)E__doc__Z pip._vendorrrr exceptionsrrrr"r rrrZpip._internal.utils.compatr Zpip._vendor.urllib3.contribr!Zinject_into_urllib3Z cryptographyr ImportErrorZpip._vendor.urllib3.exceptionsr# simplefilterr%r&r'r(r)r*r+r,r-r.r/Zmodelsr0r1r2Zapir3r4r5r6rr7r8r9Zsessionsr:r;Z status_codesr<r=r>r?r@rArBrCrDrEZloggingrFZ getLogger__name__Z addHandlerrrrrsP#             ( ,