/usr/lib/fixperms/venv/lib/python3.13/site-packages/urllib3/__pycache__
Edit: /usr/lib/fixperms/venv/lib/python3.13/site-packages/urllib3/__pycache__/poolmanager.cpython-313.pyc (23962B)
gi:] S SK Jr S SKrS SKrS SKrS SKrS SKJr S SKJ r SSK
JrJr SSK
Jr SSKJr SS KJrJrJr SS
KJrJrJrJr SSKJr SSKJr SS
KJr SSK J!r! SSK"J#r# SSK$J%r%J&r& \RN ( a
S SK(r(S SK)J*r* / SQr+\RX " \-5 r.Sr/Sr0 " S S\Rb 5 r2 SS jr3\Rh " \3\25 \Rh " \3\25 S.r5\\S.r6 " S S\5 r7 " S S\75 r8SS jr9g) )annotationsN)
TracebackType)urljoin )HTTPHeaderDictRecentlyUsedContainer)RequestMethods)ProxyConfig)HTTPConnectionPoolHTTPSConnectionPoolport_by_scheme)LocationValueError
MaxRetryErrorProxySchemeUnknownURLSchemeUnknown)BaseHTTPResponse)_TYPE_SOCKET_OPTIONS)connection_requires_http_tunnel)Retry)Timeout)Url parse_url)Self)PoolManagerProxyManagerproxy_from_url)key_file cert_file cert_reqsca_certsca_cert_datassl_versionssl_minimum_versionssl_maximum_versionca_cert_dirssl_contextkey_passwordserver_hostnamei @ c < \ rS rSr% SrS\S' S\S' S\S' S\S ' S
\S' S\S
' S\S' S\S' S\S' S\S' S\S' S\S' S\S' S\S' S\S' S\S' S\S' S\S' S\S ' S!\S"' S#\S$' S!\S%' S&\S'' S(\S)' S!\S*' S+\S,' S\S-' S\S.' S\S/' S0rg1)2PoolKey8 z
All known keyword arguments that could be provided to the pool manager, its
pools, or the underlying connections.
All custom key schemes should include the fields in this key at a minimum.
str
key_schemekey_host
int | Nonekey_portzTimeout | float | int | Nonekey_timeoutzRetry | bool | int | Nonekey_retrieszbool | None key_blockztuple[str, int] | Nonekey_source_address
str | Nonekey_key_filekey_key_password
key_cert_file
key_cert_reqskey_ca_certszstr | bytes | Nonekey_ca_cert_datazint | str | Nonekey_ssl_versionzssl.TLSVersion | Nonekey_ssl_minimum_versionkey_ssl_maximum_versionkey_ca_cert_dirssl.SSLContext | Nonekey_ssl_contextkey_maxsizez!frozenset[tuple[str, str]] | Nonekey_headers
Url | None
key__proxykey__proxy_headersProxyConfig | Nonekey__proxy_configz_TYPE_SOCKET_OPTIONS | Nonekey_socket_optionskey__socks_optionszbool | str | Nonekey_assert_hostnamekey_assert_fingerprintkey_server_hostname
key_blocksize N)__name__
__module____qualname____firstlineno____doc____annotations____static_attributes__rO J/usr/lib/fixperms/venv/lib/python3.13/site-packages/urllib3/poolmanager.pyr* r* 8 s OM--**.. ((%%2222**2299))3399**&&##rW r* c UR 5 nUS R 5 US' US R 5 US' S H. nX2; d M
X# c M [ X# R 5 5 X#' M0 UR S5 nUb [ U5 US' [
UR 5 5 H nUR U5 USU- ' M U R H nXR; d M
SX%' M UR S5 c [ US' U " S0 UD6$ ) a
Create a pool key out of a request context dictionary.
According to RFC 3986, both the scheme and host are case-insensitive.
Therefore, this function normalizes both before constructing the pool
key for an HTTPS request. If you wish to change this behaviour, provide
alternate callables to ``key_fn_by_scheme``.
:param key_class:
The class to use when constructing the key. This should be a namedtuple
with the ``scheme`` and ``host`` keys at a minimum.
:type key_class: namedtuple
:param request_context:
A dictionary-like object that contain the context for a request.
:type request_context: dict
:return: A namedtuple that can be used as a connection pool key.
:rtype: PoolKey
schemehost)headers_proxy_headers_socks_optionsNsocket_optionskey_rN rO )copylower frozensetitemsgettuplelistkeyspop_fields_DEFAULT_BLOCKSIZE) key_classrequest_contextcontextkeysocket_optsfields rX _default_key_normalizerrr _ s . ""$G)//1GHfo++-GFO ?>gl6$W\%7%7%9:GL ? ++./K$)+$6 ! GLLN# 'C 0 $ ""!GN #
{{?#+#5 wrW httphttpsc Z ^ \ rS rSr% SrSrS\S' SrS\S' S SU 4S jjjrSS jr SS
jr
S SS jjrSS jr S SS
jjr
SS jr SS jr S S S jjr S!S jrS"S jr S# S$S jjrSrU =r$ )%r a
Allows for arbitrary requests while transparently keeping track of
necessary connection pools for you.
:param num_pools:
Number of connection pools to cache before discarding the least
recently used pool.
:param headers:
Headers to include with all requests, unless other headers are given
explicitly.
:param \**connection_pool_kw:
Additional parameters are used to create fresh
:class:`urllib3.connectionpool.ConnectionPool` instances.
Example:
.. code-block:: python
import urllib3
http = urllib3.PoolManager(num_pools=2)
resp1 = http.request("GET", "https://google.com/")
resp2 = http.request("GET", "https://google.com/mail")
resp3 = http.request("GET", "https://yahoo.com/")
print(len(http.pools))
# 2
NrD proxyrG proxy_configc B > [ TU ] U5 SU; aM US n[ U[ 5 ( d3 USLn[ R " USS9nXTl UR
5 nXCS' X0l U [ U5 U l [ U l
[ R
5 U l g )NretriesFredirect)super__init__
isinstancer from_intraise_on_redirectra connection_pool_kwr poolspool_classes_by_schemekey_fn_by_scheme)self num_poolsr\ r r{ r __class__s rX r PoolManager.__init__ s !**(3Ggu-- %,5$8!..5A,=)%7%<%<%>"079-"4*95
'=# 0 5 5 7rW c U $ NrO r s rX __enter__PoolManager.__enter__ s rW c $ U R 5 g)NF)clear)r exc_typeexc_valexc_tbs rX __exit__PoolManager.__exit__ s
rW c " U R U nUc U R R 5 nUR S5 c [ US' S H nUR US5 M US:X a [ H nUR US5 M U" X#40 UD6$ )a
Create a new :class:`urllib3.connectionpool.ConnectionPool` based on host, port, scheme, and
any additional pool keyword arguments.
If ``request_context`` is provided, it is provided as keyword arguments
to the pool class used. This method is used to actually create the
connection pools handed out by :meth:`connection_from_url` and
companion methods. It is intended to be overridden for customization.
N blocksize)rZ r[ portrt )r r ra re rk ri SSL_KEYWORDS)r rZ r[ r rm pool_clsro kws rX _new_poolPoolManager._new_pool s .2-H-H-P""55::