zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
U
 ý°d¤ã@s
dZddlmZddlZddlZddlZddlmZddlmZddl    m
Z
ddl m Z dd    l mZdd
lmZmZmZdd lmZmZdd lmZmZmZdd lmZmZddlmZddlm Z ddl!m"Z"z ddl#Z#Wne$k
rðYn.Xe#j% &d¡r e#j'dkre$de#j%›dƒ‚z ddl(Z(Wne)k
r@YnXej*de+dddZ,dZ-eZdZ.e /e0¡ 1eƒ¡ej2fdddœdd„Z3[ej4d ej5d!d"ej4d#ej6d!d"ej7fd$d%d&œd'd(„Z8eƒZ9dddd!d!d!dd)dd*œ    d+d+d,d-d.d/d/d/d0d1d2d3d4œ d5d6„Z:dS)7ze
Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more
é)Ú annotationsN)Ú NullHandleré)Ú
exceptions)Ú
_TYPE_BODY)ÚHTTPHeaderDict)Ú __version__)ÚHTTPConnectionPoolÚHTTPSConnectionPoolÚconnection_from_url)Ú _TYPE_FIELDSÚencode_multipart_formdata)Ú PoolManagerÚ ProxyManagerÚproxy_from_url)ÚBaseHTTPResponseÚ HTTPResponse)Ú make_headers)ÚRetry)ÚTimeoutzOpenSSL )rrrzWurllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with z5. See: https://github.com/urllib3/urllib3/issues/2168z”'urllib3[secure]' extra is deprecated and will be removed in urllib3 v2.1.0. Read more in this issue: https://github.com/urllib3/urllib3/issues/2680é)ÚcategoryÚ
stacklevelz(Andrey Petrov (andrey.petrov@shazow.net)ÚMIT)r    rr
rrrrrÚadd_stderr_loggerr Údisable_warningsr rrÚrequestÚintz$logging.StreamHandler[typing.TextIO])ÚlevelÚreturncCsFt t¡}t ¡}| t d¡¡| |¡| |¡| dt¡|S)z†
    Helper for quickly adding a StreamHandler to the logger. Useful for
    debugging.
 
    Returns the handler after adding it.
    z%%(asctime)s %(levelname)s %(message)sz,Added a stderr logging handler to logger: %s)    ÚloggingÚ    getLoggerÚ__name__Ú StreamHandlerÚ setFormatterÚ    FormatterÚ
addHandlerÚsetLevelÚdebug)rÚloggerÚhandler©r+úGd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\urllib3/__init__.pyrWs
 
 
 rÚalwaysT)ÚappendÚdefaultz type[Warning]ÚNone)rrcCst d|¡dS)z<
    Helper for quickly disabling all urllib3 warnings.
    ÚignoreN)ÚwarningsÚ simplefilter)rr+r+r,rxsré©    ÚbodyÚfieldsÚheadersÚpreload_contentÚdecode_contentÚredirectÚretriesÚtimeoutÚjsonÚstrz_TYPE_BODY | Nonez_TYPE_FIELDS | Noneztyping.Mapping[str, str] | Nonez bool | NonezRetry | bool | int | NonezTimeout | float | int | Noneztyping.Any | Noner) ÚmethodÚurlr6r7r8r9r:r;r<r=r>rc     Cs tj||||||||||    |
d S)aX
    A convenience, top-level request method. It uses a module-global ``PoolManager`` instance.
    Therefore, its side effects could be shared across dependencies relying on it.
    To avoid side effects create a new ``PoolManager`` instance and use it instead.
    The method does not accept low-level ``**urlopen_kw`` keyword arguments.
    r5)Ú _DEFAULT_POOLr) r@rAr6r7r8r9r:r;r<r=r>r+r+r,r‚sõr);Ú__doc__Ú
__future__rr Útypingr2rÚrZ_base_connectionrÚ _collectionsrÚ_versionrÚconnectionpoolr    r
r Úfilepostr r Ú poolmanagerrrrÚresponserrZ util.requestrZ
util.retryrZ util.timeoutrÚsslÚ ImportErrorÚOPENSSL_VERSIONÚ
startswithÚOPENSSL_VERSION_INFOZurllib3_secure_extraÚModuleNotFoundErrorÚwarnÚDeprecationWarningÚ
__author__Ú __license__Ú__all__r!r"r&ÚDEBUGrr3ÚSecurityWarningÚInsecurePlatformWarningÚ HTTPWarningrrBrr+r+r+r,Ú<module>st          
ÿþ ÿ  ûÿô