Re <ddlmZddlmZGddeZGddeZGdd eZ Gd d e Z Gd d eZ GddeZ GddeZ GddeZeZGdde ZGdde ZGddeZGddeZGddee ZGddeZGd d!ee ZGd"d#e ZGd$d%e ZGd&d'eeZGd(d)eZGd*d+eZGd,d-eZGd.d/eZGd0d1eZGd2d3eZ Gd4d5eZ!Gd6d7eZ"Gd8d9eZ#Gd:d;eZ$Gd<d=eeZ%Gd>d?eZ&Gd@dAeeZGdBdCeeZ'GdDdEeZ(GdFdGe)eZ*GdHdIeZ+GdJdKeZ,GdLdMeZ-dNS)O)absolute_import)IncompleteReadceZdZdZdS) HTTPErrorz#Base exception used by this module.N__name__ __module__ __qualname____doc__/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/urllib3/exceptions.pyrrs--DrrceZdZdZdS) HTTPWarningz!Base warning used by this module.Nrr rrrrs++DrrceZdZdZdZdZdS) PoolErrorz/Base exception for errors caused within a pool.cT||_t||d|dS)Nz: )poolr__init__)selfrmessages rrzPoolError.__init__s0 4TTT77!;<<<<66$$$$$$$$$rr)ceZdZdZdS) DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nrr rrr2r2:EEDrr2ceZdZdZdS) ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nrr rrr5r5@sHHDrr5ceZdZdZddZdS) MaxRetryErrora Raised when the maximum number of retries is exceeded. :param pool: The connection pool :type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool` :param string url: The requested Url :param exceptions.Exception reason: The underlying error Nc`||_d|d|d}t||||dS)NzMax retries exceeded with url: z (Caused by ))reasonr r)rrr#r:rs rrzMaxRetryError.__init__Ws= HKVVVTdD#w77777rr"r r r r rr rrr7r7Ms2888888rr7ceZdZdZddZdS)HostChangedErrorz?Raised when an existing pool gets a request for a foreign host.cXd|z}t||||||_dS)Nz)Tried to open a foreign host with url: %s)r rretries)rrr#r@rs rrzHostChangedError.__init__bs1=CdD#w777 rN)r>r;r rrr=r=_s.IIrr=ceZdZdZdS)TimeoutStateErrorz1Raised when passing an invalid state to a timeoutNrr rrrBrBhs;;DrrBceZdZdZdS) TimeoutErrorzRaised when a socket timeout error occurs. Catching this error will catch both :exc:`ReadTimeoutErrors ` and :exc:`ConnectTimeoutErrors `. Nrr rrrDrDns  DrrDceZdZdZdS)ReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNrr rrrFrFxsPPDrrFceZdZdZdS)ConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNrr rrrHrHsJJDrrHceZdZdZdS)NewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.Nrr rrrJrJsRRDrrJceZdZdZdS)EmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nrr rrrLrLMMDrrLceZdZdZdS)ClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nrr rrrOrOrMrrOceZdZdZdS)LocationValueErrorz<<rrWceZdZdZdZdZdS) ResponseErrorzDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesN)r r r r GENERIC_ERRORSPECIFIC_ERRORr rrr\r\sNN.M=NNNrr\ceZdZdZdS)SecurityWarningz0Warned when performing security reducing actionsNrr rrr`r`::Drr`ceZdZdZdS)SubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.Nrr rrrcrcsLLDrrcceZdZdZdS)InsecureRequestWarningz/Warned when making an unverified HTTPS request.Nrr rrreres99DrreceZdZdZdS)SystemTimeWarningz0Warned when system time is suspected to be wrongNrr rrrgrgrarrgceZdZdZdS)InsecurePlatformWarningzIWarned when certain TLS/SSL configuration is not available on a platform.Nrr rrririsSSDrriceZdZdZdS)SNIMissingWarningz9Warned when making a HTTPS request without SNI available.Nrr rrrkrkr'rrkceZdZdZdS)DependencyWarningzc Warned when an attempt is made to import a module with missing optional dependencies. Nrr rrrmrm  DrrmceZdZdZdS)ResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.Nrr rrrprpr3rrpceZdZdZdS)BodyNotHttplibCompatiblez Body should be :class:`http.client.HTTPResponse` like (have an fp attribute which returns raw chunks) for read_chunked(). Nrr rrrrrrrnrrrc(eZdZdZfdZdZxZS)rz Response length doesn't match expected Content-Length Subclass of :class:`http.client.IncompleteRead` to allow int value for ``partial`` to avoid creating large objects on streamed reads. cZtt|||dSr")r+rr)rpartialexpectedrs rrzIncompleteRead.__init__s) nd##,,Wh?????rc$d|j|jfzS)Nz/IncompleteRead(%i bytes read, %i more expected))rurvrs r__repr__zIncompleteRead.__repr__s@ L MD   rr r r r rrxr0rs@rrrsV@@@@@       rrc(eZdZdZfdZdZxZS)InvalidChunkLengthz+Invalid chunk length in a chunked response.ctt|||j||_||_dSr")r+r{rtelllength_remainingresponselength)rrrrs rrzInvalidChunkLength.__init__ sJ  $''00 MMOOX6   !  rc$d|j|jfzS)Nz0InvalidChunkLength(got length %r, %i bytes read))rrurs rrxzInvalidChunkLength.__repr__sA K LE   rryrs@rr{r{sM55       rr{ceZdZdZdS) InvalidHeaderz(The header provided was somehow invalid.Nrr rrrrs22Drrc"eZdZdZfdZxZS)ProxySchemeUnknownz1ProxyManager does not support the supplied schemec||dkrd}|d}nd|z}tt||dS)N localhostz>Proxy URL had no scheme, should start with http:// or https://zCProxy URL had unsupported scheme %s, should use http:// or https://)r+rrrZs rrzProxySchemeUnknown.__init__#s[ [ F >VGGV   $''0099999rr/rs@rrrs>;; : : : : : : : : :rrceZdZdZdS)ProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNrr rrrr2sGGDrrc"eZdZdZfdZxZS)HeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.cj|pdd|}tt||dS)NUnknownz, unparsed data: )r+rr)rdefects unparsed_datarrs rrzHeaderParsingError.__init__;s?-4-A -A-A==Q  $''0099999rr/rs@rrr8s>XX:::::::::rrceZdZdZdS)UnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNrr rrrr@r'rrN). __future__rpackages.six.moves.http_clientrhttplib_IncompleteRead ExceptionrWarningrrr r&r)r2r5ConnectionErrorr7r=rBrDrFrHrJrLrO ValueErrorrQrSrWr\r`rcrergrirkrmrprrr{rAssertionErrorrrrrr rrrs`&&&&&&TTTTTT              '   , , , , , , , , 6 6 6 6 69 6 6 6     y   $$$$$$$$     )        I     88888L888$|             9        |\        ,        ,i        Y        i        Y   !!!!!+!!!)>>>>>I>>>     k        O        _                o                                 y        Y 6   $     $:   "     I   :::::)9:::(     Z   ::::::::     I     r