A&3 b d Z ddlmZ ddlZddlmZ dZ ddlmZ n
# e
$ r dZ Y nw xY wd Zd Z eej e e n8# e
ef$ r. ej d ej e e e Y nw xY w dd
lmZ es e
d ddlZn
# e
$ r dZY nw xY w eedd
s&ddlmZ ej ddlmZ ee n# e
$ r Y nw xY wddlmZ ej de ddlmZmZmZmZ ddlm 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/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5 ddl6m7Z7m8Z8 ddl9m:Z: ddlm;Z;mZ>m?Z?m@Z@mAZAmBZBmCZC ddlDZDddlDmEZE eDjF eG H eE ej deAd 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__c | d } | dgk sJ t | dk r| d | \ }}}t | t | t | }}}|dk sJ |dk sJ |dk sJ |r_ |j d d d \ }}}t | t | t | }}}d |||fcxk rd
k sn J d S |rd| d d d \ }}}t | t | t | }}}d|||fcxk rdk sn J d S t d
)N.dev 0r )r r r
) r r )r
r r )r r r z7You need either charset_normalizer or chardet installed)splitlenappendint Exception)urllib3_versionchardet_versioncharset_normalizer_versionmajorminorpatchs /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/requests/__init__.pycheck_compatibilityr 6 s %++C00Oug%%%% ?q s### *E5%e**c%jj#e**%5EA::::B;;;;B;;;; S3o3C88!<ue!%jj#e**c%jjeuUE51====I======== # S8>>sCCBQBGue!%jj#e**c%jjeuUE51====I========QRRR c t t t | j d } n# t $ r Y d S w xY w| g dk r1d | }t
j |t d S d S )Nr )r r z4Old version of cryptography ({}) may cause slowdown.) listmapr r
ValueErrorformatwarningswarnr )cryptography_versionwarnings r _check_cryptographyr( T s #C-G-A-G-L-L$M$MNN iii''HOOPdee
g899999 ('s 03
A AzWurllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported version!)WINDOWSz3pip internals: don't import cryptography on WindowsHAS_SNIF) pyopenssl)DependencyWarningignore) __title____description____url__r ) __build__
__author____author_email____license__)
__copyright____cake__)utils)packages)RequestResponsePreparedRequest)requestgetheadpostr putdeleteoptions)sessionSession)codes) RequestExceptionTimeoutURLRequiredTooManyRedirects HTTPErrorConnectionErrorFileModeWarningConnectTimeoutReadTimeout)NullHandlerdefaultT)r )I__doc__pip._vendorr r$
exceptionsr r pip._vendor.chardetr r ImportErrorr r( AssertionErrorr" r% r# pip._internal.utils.compatr) sslgetattrpip._vendor.urllib3.contribr+ inject_into_urllib3cryptographyr&