/usr/lib/fixperms/venv/lib/python3.13/site-packages/requests/__pycache__
NameSizeModeActions
adapters.cpython-313.pyc267040644editdlrm
api.cpython-313.pyc68480644editdlrm
auth.cpython-313.pyc141040644editdlrm
certs.cpython-313.pyc6460644editdlrm
compat.cpython-313.pyc23780644editdlrm
cookies.cpython-313.pyc250050644editdlrm
exceptions.cpython-313.pyc79880644editdlrm
help.cpython-313.pyc42460644editdlrm
hooks.cpython-313.pyc10720644editdlrm
models.cpython-313.pyc358100644editdlrm
packages.cpython-313.pyc11440644editdlrm
sessions.cpython-313.pyc273720644editdlrm
status_codes.cpython-313.pyc60220644editdlrm
structures.cpython-313.pyc56250644editdlrm
utils.cpython-313.pyc361900644editdlrm
_internal_utils.cpython-313.pyc20020644editdlrm
__init__.cpython-313.pyc53790644editdlrm
__version__.cpython-313.pyc5620644editdlrm
Edit: /usr/lib/fixperms/venv/lib/python3.13/site-packages/requests/__pycache__/adapters.cpython-313.pyc (26704B)
gir> Sr?Sr@SrASrBSSjrC"SS5rD"SS\D5rEg!\<a Sr;NOf=f)z requests.adapters ~~~~~~~~~~~~~~~~~ This module contains the transport adapters that Requests uses to define and maintain connections. N)ClosedPoolErrorConnectTimeoutErrorLocationValueError MaxRetryErrorNewConnectionError ProtocolErrorReadTimeoutError ResponseError) HTTPError) InvalidHeader) ProxyError)SSLError) PoolManagerproxy_from_url)Timeout) parse_url)Retry)_basic_auth_str) basestringurlparse)extract_cookies_to_jar) ConnectionErrorConnectTimeoutr InvalidProxyURL InvalidSchema InvalidURLr ReadTimeout RetryErrorr)Response)CaseInsensitiveDict)DEFAULT_CA_BUNDLE_PATHget_auth_from_urlget_encoding_from_headersprepend_scheme_if_needed select_proxy urldefragauth)SOCKSProxyManagerc[S5e)Nz'Missing dependencies for SOCKS support.)r)argskwargss H/usr/lib/fixperms/venv/lib/python3.13/site-packages/requests/adapters.pyr(r(?sEFF)PreparedRequestF c0n0n[UR5nURR5nURnSn USLaSn OB[ U[ 5(a-[RRU5(dXS'OXS'XS'Ub9[ U[5(a [U5S:XaUSUS 'US US 'OX%S 'UURUS .nXE4$) N CERT_REQUIREDF CERT_NONEca_certs ca_cert_dir cert_reqsr cert_filerkey_file)schemehostport) rurlr9lowerr; isinstancestrospathisdirtuplelenhostname) requestverify client_cert poolmanager host_params pool_kwargsparsed_request_urlr9r;r5s r,_urllib3_request_contextrMMs KK!'++.  & & , , .F  " "DI  FC ww}}V$$&, #)/ &(  k5 ) )c+.>!.C'21~K $&1!nK #(3 $"++K  ##r-c>^\rSrSrSrU4SjrSSjrSrSrU=r $) BaseAdapterrzThe Base Transport Adapterc">[TU]5 gN)super__init__)self __class__s r,rTBaseAdapter.__init__us r-c[e)aSends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. NotImplementedError)rUrFstreamtimeoutrGcertproxiess r,sendBaseAdapter.sendxs ""!r-c[e)z!Cleans up adapter specific items.rY)rUs r,closeBaseAdapter.closes!!r-FNTNN) __name__ __module__ __qualname____firstlineno____doc__rTr_rb__static_attributes__ __classcell__rVs@r,rOrOrs!$TX"&""r-rOc^\rSrSrSr/SQr\\\\4U4Sjjr Sr Sr \4Sjr Sr S rS rSS jrSS jrSS jrSrSrSrSrSSjrSrU=r$) HTTPAdaptera?The built-in HTTP Adapter for urllib3. Provides a general-case interface for Requests sessions to contact HTTP and HTTPS urls by implementing the Transport Adapter interface. This class will usually be created by the :class:`Session ` class under the covers. :param pool_connections: The number of urllib3 connection pools to cache. :param pool_maxsize: The maximum number of connections to save in the pool. :param max_retries: The maximum number of retries each connection should attempt. Note, this applies only to failed DNS lookups, socket connections and connection timeouts, never to requests where data has made it to the server. By default, Requests does not retry failed connections. If you need granular control over the conditions under which we retry a request, import urllib3's ``Retry`` class and pass that instead. :param pool_block: Whether the connection pool should block for connections. Usage:: >>> import requests >>> s = requests.Session() >>> a = requests.adapters.HTTPAdapter(max_retries=3) >>> s.mount('http://', a) ) max_retriesconfig_pool_connections _pool_maxsize _pool_blockc>U[:Xa[SSS9UlO[R"U5Ul0Ul0Ul[ TU]5 XlX l X@l URXUS9 g)NrF)readblock) DEFAULT_RETRIESrrqfrom_intrr proxy_managerrSrTrsrtruinit_poolmanager)rUpool_connections pool_maxsizerq pool_blockrVs r,rTHTTPAdapter.__init__sm / )$QU3D $~~k:D   !1)% .JOr-c ZURVs0sHo[XS5_M sn$s snfrR) __attrs__getattr)rUattrs r, __getstate__HTTPAdapter.__getstate__s(<@NNKNDgd$//NKKKs(c0Ul0UlUR5Hup#[XU5 M UR UR UR URS9 g)Nrx)r|rritemssetattrr}rsrtru)rUstatervalues r, __setstate__HTTPAdapter.__setstate__s]   ;;=KD D &)   " "D$6$6d>N>N  r-c PXlX lX0l[SUUUS.UD6Ulg)aInitializes a urllib3 PoolManager. This method should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter `. :param connections: The number of urllib3 connection pools to cache. :param maxsize: The maximum number of connections to save in the pool. :param block: Block when no free connections are available. :param pool_kwargs: Extra keyword arguments used to initialize the Pool Manager. ) num_poolsmaxsizeryNrd)rsrtrurrI)rU connectionsrryrKs r,r}HTTPAdapter.init_poolmanagers;"-$ & !   r-c XR;aURUnU$UR5RS5(aM[U5upE[ U4UUUR UR URS.UD6=o0RU'U$URU5n[U4UUR UR URS.UD6=o0RU'U$)aReturn urllib3 ProxyManager for the given proxy. This method should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter `. :param proxy: The proxy to return a urllib3 ProxyManager for. :param proxy_kwargs: Extra keyword arguments used to configure the Proxy Manager. :returns: ProxyManager :rtype: urllib3.ProxyManager socks)usernamepasswordrrry) proxy_headersrrry) r|r= startswithr#r(rsrtrurr)rUproxy proxy_kwargsmanagerrrrs r,proxy_manager_forHTTPAdapter.proxy_manager_fors && &((/G.-[[] % %g . .!25!9 H2C3!!00**&& 33 G((/(!..u5M2@3+00**&& 3  3 G((/r-cpUR5RS5(aU(aSnUSLaUnU(d[nU(a$[RR U5(d[ SU35eSUl[RRU5(dXQl OXQl OSUlSUl SUl U(a[U[5(dUSUl USUlO XAl SUlUR(aF[RR UR5(d[ S UR35eUR(aG[RR UR5(d[ S UR35eggg) aVerify a SSL certificate. This method should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter `. :param conn: The urllib3 connection object associated with the cert. :param url: The requested URL. :param verify: Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: The SSL certificate to verify. httpsNTzCCould not find a suitable TLS CA certificate bundle, invalid path: r1r2rrz7Could not find the TLS certificate file, invalid path: z/Could not find the TLS key file, invalid path: )r=rr"r@rAexistsOSErrorr5rBr3r4r>rr7r8)rUconnr<rGr]cert_locs r, cert_verifyHTTPAdapter.cert_verifys^ 99; ! !' * *vHT!!1277>>(#;#;%%-J0 -DN77==** ( #+ (DN DM#D  dJ//!%a $Q !% $ ~~bggnnT^^&D&D%%)^^$46}}RWW^^DMM%B%BEdmm_U&C} r-c[5n[USS5Ul[[US055Ul[ UR5UlX#lURRUl[UR[5(a!URRS5Ul OURUl [URX5 XlXlU$)a~Builds a :class:`Response ` object from a urllib3 response. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter ` :param req: The :class:`PreparedRequest ` used to generate the response. :param resp: The urllib3 response object. :rtype: requests.Response statusNheaderszutf-8)r r status_coder!rr$encodingrawreasonr>r<bytesdecodercookiesrF connection)rUreqrespresponses r,build_responseHTTPAdapter.build_responseQs: 'tXt</wtY/KL6h6F6FG ",,-- cggu % %77>>'2HL77HL x//;"r-c.[XX0R5$)a^Build the PoolKey attributes used by urllib3 to return a connection. This looks at the PreparedRequest, the user-specified verify value, and the value of the cert parameter to determine what PoolKey values to use to select a connection from a given urllib3 Connection Pool. The SSL related pool key arguments are not consistently set. As of this writing, use the following to determine what keys may be in that dictionary: * If ``verify`` is ``True``, ``"ssl_context"`` will be set and will be the default Requests SSL Context * If ``verify`` is ``False``, ``"ssl_context"`` will not be set but ``"cert_reqs"`` will be set * If ``verify`` is a string, (i.e., it is a user-specified trust bundle) ``"ca_certs"`` will be set if the string is not a directory recognized by :py:func:`os.path.isdir`, otherwise ``"ca_cert_dir"`` will be set. * If ``"cert"`` is specified, ``"cert_file"`` will always be set. If ``"cert"`` is a tuple with a second item, ``"key_file"`` will also be present To override these settings, one may subclass this class, call this method and use the above logic to change parameters as desired. For example, if one wishes to use a custom :py:class:`ssl.SSLContext` one must both set ``"ssl_context"`` and based on what else they require, alter the other keys to ensure the desired behaviour. :param request: The PreparedReqest being sent over the connection. :type request: :class:`~requests.models.PreparedRequest` :param verify: Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use. :param cert: (optional) Any user-provided SSL certificate for client authentication (a.k.a., mTLS). This may be a string (i.e., just the path to a file which holds both certificate and key) or a tuple of length 2 with the certificate file path and key file path. :returns: A tuple of two dictionaries. The first is the "host parameters" portion of the Pool Key including scheme, hostname, and port. The second is a dictionary of SSLContext related parameters. )rMrI)rUrFrGr]s r,$build_connection_pool_key_attributes0HTTPAdapter.build_connection_pool_key_attributesvs`(?O?OPPr-c[URU5nURUUU5upgU(a\[ US5n[ U5n U R(d [S5eURU5n U R"S0UDSU0D6n U $URR"S0UDSU0D6n U $![an[ XS9eSnAff=f)aReturns a urllib3 connection for the given request and TLS settings. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter `. :param request: The :class:`PreparedRequest ` object to be sent over the connection. :param verify: Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use. :param proxies: (optional) The proxies dictionary to apply to the request. :param cert: (optional) Any user-provided SSL certificate to be used for client authentication (a.k.a., mTLS). :rtype: urllib3.ConnectionPool rFNhttpFPlease check proxy URL. It is malformed and could be missing the host.rKrd) r&r<r ValueErrorrr%rr:rrconnection_from_hostrI) rUrFrGr^r]rrJrKe proxy_urlr|rs r,get_connection_with_tls_context+HTTPAdapter.get_connection_with_tls_contexts(W[['2 1'+'P'P( $K ,UF;E!%(I>>%5!2259M 55+6D ##88+6D ) 1Q0 0 1sB22 C < CC cz[R"S[5 [X5nU(aW[ US5n[ U5nUR (d [S5eURU5nURU5nU$[U5nUR5nURRU5nU$)aDEPRECATED: Users should move to `get_connection_with_tls_context` for all subclasses of HTTPAdapter using Requests>=2.32.2. Returns a urllib3 connection for the given URL. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter `. :param url: The URL to connect to. :param proxies: (optional) A Requests-style dictionary of proxies used on this request. :rtype: urllib3.ConnectionPool z`get_connection` has been deprecated in favor of `get_connection_with_tls_context`. Custom HTTPAdapter subclasses will need to migrate for Requests>=2.32.2. Please see https://github.com/psf/requests/pull/6710 for more details.rr) warningswarnDeprecationWarningr&r%rr:rrconnection_from_urlrgeturlrI)rUr<r^rrr|rparseds r,get_connectionHTTPAdapter.get_connections  N  S* ,UF;E!%(I>>%5!2259M 44S9D c]F--/C##77`. :param request: The :class:`PreparedRequest ` being sent. :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs. :rtype: str rFrz///) r&r<rr9r=rpath_urllstripr') rUrFr^rr9is_proxied_http_requestusing_socks_proxy proxy_schemer<s r, request_urlHTTPAdapter.request_url sW[['2'++&--"'"=Fg,=! #E?11779L , 7 7 @  >>$  cjjo&'C "+< ,C r-c g)aAdd any headers needed by the connection. As of v2.0 this does nothing by default, but is left for overriding by users that subclass the :class:`HTTPAdapter `. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter `. :param request: The :class:`PreparedRequest ` to add headers to. :param kwargs: The keyword arguments from the call to send(). Nrd)rUrFr+s r, add_headersHTTPAdapter.add_headers,s r-cN0n[U5up4U(a[X45US'U$)aReturns a dictionary of the headers to add to any request sent through a proxy. This works with urllib3 magic to ensure that they are correctly sent to the proxy, rather than in a tunnelled request if CONNECT is being used. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter `. :param proxy: The url of the proxy being used for this request. :rtype: dict zProxy-Authorization)r#r)rUrrrrs r,rHTTPAdapter.proxy_headers:s..u5 -4a`n[U[85(a [;XS9e[U[@5(a [CXS9e[U[D5(a [GXS9eeSnAff=f) aSends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response )r^r]rN)r[r\rGr]r^zContent-Length)connectrwzInvalid timeout za. Pass a (connect, read) timeout tuple, or a single float to set both timeouts to the same value.F) methodr<bodyrredirectassert_same_hostpreload_contentdecode_contentretriesr\chunked)%rrrrr<rrrrr>rC TimeoutSaucerurlopenrrqrrrrrrrrr r _ProxyErrorr _SSLErrorrr _HTTPErrorr r_InvalidHeaderr r)rUrFr[r\rGr]r^rrr<rrrwrerrs r,r_HTTPAdapter.sendOs& 1778D {{F9w0    ||t+R/?7??/RS gu % %  ' &wB  . . "7AG3 <<~~\\!& %$(( Dh""711g" 1Q0 0 1(  &wi0PQ 2w' 8!#7 7 6!(($788!!((,>??(<<!((M22 44!((K00 44!((I..q22!!5 5 6!!5 5 Q- :& !Y''q22A/00!!55A~..#A77 snD D-AE  D* D%%D*-E K E## K0CH88 K I K I&&K9AKK)rursrtrrrqrIr|rR)NNre)rfrgrhrirjrDEFAULT_POOLSIZErzDEFAULT_POOLBLOCKrTrrr}rrrrrrrbrrrr_rkrlrms@r,roros4I*%#$ P,L  +< 4$L6p#J0Qd/b'R@  ,TXj2j2r-ro) rFr.rGzbool | str | NonerHztuple[str, str] | str | NonerIrreturnz.(dict[str, typing.Any], dict[str, typing.Any]))Frjos.pathr@sockettypingrurllib3.exceptionsrrrrrrr r r rr rr rrrurllib3.poolmanagerrr urllib3.utilrrrurllib3.util.retryrauthrcompatrrrr exceptionsrrrrrrrmodelsr structuresr!utilsr"r#r$r%r&r'urllib3.contrib.socksr( ImportError TYPE_CHECKINGr.rrrzDEFAULT_POOL_TIMEOUTrMrOrordr-r,rs    7>84;0"$!(+   +G7 '"$ "$ "$0"$ "$ 6 "$J""