a [f @s\dZddlmZddlZddlmZdZzddlmZ Wne yNdZ Yn0ddZ d d Z ze eje eWn.e efyed eje eeYn0zvdd lmZese d z ddlZWne ydZYn0eeddsddlmZeddlmZe eWne y,Yn0ddlmZededdlmZmZmZmZddlm Z m!Z!m"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/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5ddl6m7Z7m8Z8ddl9m:Z:ddlm;Z;mZ>m?Z?m@Z@mAZAmBZBmCZCddlDZDddlDmEZEeDFeGHeEejdeAdd 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 >>> 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. )urllib3N)RequestsDependencyWarning) __version__cCs|d}t|dkr |d|\}}}t|t|t|}}}|r|ddd\}}}t|t|t|}}}nB|r|ddd\}}}t|t|t|}}}ntddS)N.0z7You need either charset_normalizer or chardet installed)splitlenappendint Exception)Zurllib3_versionchardet_versioncharset_normalizer_versionmajorminorpatchrA/usr/lib/python3.9/site-packages/pip/_vendor/requests/__init__.pycheck_compatibility6s    rcCsTzttt|d}Wnty,YdS0|gdkrPd|}t|tdS)Nr)rr z4Old version of cryptography ({}) may cause slowdown.) listmapr r ValueErrorformatwarningswarnr)cryptography_versionZwarningrrr_check_cryptographyTs   rzWurllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported version!)WINDOWSz3pip internals: don't import cryptography on WindowsZHAS_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 )I__doc__Z pip._vendorrr exceptionsrrZpip._vendor.chardetrr ImportErrorrrAssertionErrorrrrZpip._internal.utils.compatr ZsslgetattrZpip._vendor.urllib3.contribr!Zinject_into_urllib3Z cryptographyrZpip._vendor.urllib3.exceptionsr" simplefilterr$r%r&r'r(r)r*r+r,r-r.Zmodelsr/r0r1Zapir2r3r4r5rr6r7r8Zsessionsr9r:Z status_codesr;r<r=r>r?r@rArBrCrDZloggingrEZ getLogger__name__Z addHandlerrrrrsb#                 ( ,