2biwSSKJr SSKrSSKrSSKrSSKrSSKrSSKJr SSK J r SSK J r SrSSKJr SSKJr SS KJrJr SS KJrJrJrJrJrJrJrJrJrJ r SS K!J"r" SS K#J$r$J%r% \RL"\'5r("S S\)5r*"SS\)5r+"SS\)5r,\b "SS\)5r-"SS\)5r.Sr/"SS\R`5r1g))absolute_importN)contextmanager)error)timeout)util)HTTPHeaderDict) BaseSSLError HTTPException) BodyNotHttplibCompatible DecodeError HTTPErrorIncompleteReadInvalidChunkLength InvalidHeader ProtocolErrorReadTimeoutErrorResponseNotChunkedSSLError)six) is_fp_closedis_response_to_headc&\rSrSrSrSrSrSrg)DeflateDecoder#cTSUlSUl[R"5Ulg)NT) _first_try_datazlib decompressobj_objselfs ڎ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/urllib3/response.py__init__DeflateDecoder.__init__$s  &&( rc.[URU5$Ngetattrr"r$names r% __getattr__DeflateDecoder.__getattr__)tyy$''rcU(dU$UR(dURRU5$U=RU- slURRU5nU(aSUlSUlU$![R ac SUl[R "[R*5UlURUR5SUls$!SUlf=ff=f)NF)rr" decompressrr rr! MAX_WBITS)r$data decompresseds r%r2DeflateDecoder.decompress,sK99''- - d  "99//5L"'!  zz "#DO**DNN?;DI "tzz2! T  "s% 1A>>AC5C(C5( C11C5)rrr"N__name__ __module__ __qualname____firstlineno__r&r.r2__static_attributes__rr%rr#s) ("rrc \rSrSrSrSrSrSrg)GzipDecoderStateCrrr=N)r8r9r:r; FIRST_MEMBER OTHER_MEMBERS SWALLOW_DATAr<r=rr%r?r?CsLMLrr?c&\rSrSrSrSrSrSrg) GzipDecoderJc[R"S[R-5Ul[R UlgN)r r!r3r"r?rB_stater#s r%r&GzipDecoder.__init__Ks*&&rDNN':; &33 rc.[URU5$r)r*r,s r%r.GzipDecoder.__getattr__Or0rc@[5nUR[R:XdU(d [ U5$X R R U5- nUR RnU(d [ U5$[RUl[R"S[R-5UlM![RaD URn[RUlU[R:Xa [ U5s$ef=frI) bytearrayrKr?rDbytesr"r2r rrC unused_datar!r3)r$r4retprevious_states r%r2GzipDecoder.decompressRsk ;;*77 7t:  yy++D1199((DSz!*88DK**2+>?DI:: !%.;; !%5%C%CC :% sCADD)r"rKNr7r=rr%rFrFJs4(@rrFc \rSrSrSrSrSrg) BrotliDecoderjc[R5Ul[URS5(aURRUlgURR Ulg)Nr2)brotli Decompressorr"hasattrr2processr#s r%r&BrotliDecoder.__init__nsE++-DItyy,//"&))"6"6"&))"3"3rcn[URS5(aURR5$g)Nflushr)r\r"r`r#s r%r`BrotliDecoder.flushus'tyy'**yy((r)r"r2N)r8r9r:r;r&r`r<r=rr%rWrWjs  4 rrWc*\rSrSrSrSrSrSrSrg) MultiDecoder{z From RFC7231: If one or more encodings have been applied to a representation, the sender that applied the encodings MUST generate a Content-Encoding header field that lists the content codings in the order in which they were applied. cURS5Vs/sHn[UR55PM snUlgs snf)N,)split _get_decoderstrip _decoders)r$modesms r%r&MultiDecoder.__init__s1;@;;s;KL;Ka,qwwy1;KLLs#Ac<URSR5$Nr)rjr`r#s r%r`MultiDecoder.flushs~~a &&((rc`[UR5HnURU5nM U$r))reversedrjr2)r$r4ds r%r2MultiDecoder.decompresss($..)A<<%D* r)rjN) r8r9r:r;__doc__r&r`r2r<r=rr%rcrc{sM)rrccSU;a [U5$US:Xa [5$[bUS:Xa [5$[ 5$)Nrfgzipbr)rcrFrZrWr)modes r%rhrhs@ d{D!! v~} ddl  rc\rSrSrSrSS/r\b\S/- r/SQrS)SjrS r S r S r \ S 5r \ S 5rSrSrSrSr\\R*4r\b\\R*4- rSrSr\S5rSrS*SjrS+Sjr\S5rSr S,Sjr!Sr"Sr#\ S5r$Sr%Sr&S r'S!r(S"r)S#r*S$r+S-S%jr,S&r-S'r.S(r/g). HTTPResponsea HTTP Response container. Backwards-compatible with :class:`http.client.HTTPResponse` but the response ``body`` is loaded and decoded on-demand when the ``data`` property is accessed. This class is also compatible with the Python standard library's :mod:`io` module, and can hence be treated as a readable object in the context of that framework. Extra parameters for behaviour not present in :class:`http.client.HTTPResponse`: :param preload_content: If True, the response's body will be preloaded during construction. :param decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. :param original_response: When this HTTPResponse wrapper is generated from an :class:`http.client.HTTPResponse` object, it's convenient to include the original for debug purposes. It's otherwise unused. :param retries: The retries contains the last :class:`~urllib3.util.retry.Retry` that was used during the request. :param enforce_content_length: Enforce content length checking. Body returned by server must match value of Content-Length header, if present. Otherwise, raise error. rwdeflateNrx)i-i.i/i3i4c[U[5(aX lO[U5UlX0lX@lXPlX`lXlXlXl UUl SUl SUl SUl XlSUlXlUUlU(a+[U[$R&[(45(aXl XlXl[/US5(aXl SUlSUlURR5SS5R75nSUR9S55nSU;aS UlUR;U5UlU(a'UR(dUR?US 9Ul ggg) NrreadFztransfer-encodingc3@# UHoR5v M g7fr))ri).0encs r% (HTTPResponse.__init__..s>,=SYY[[,=srfchunkedTdecode_content) isinstancer headersstatusversionreasonstrictrretriesenforce_content_length auto_close_decoder_body_fp_original_response_fp_bytes_readmsg _request_urlr string_typesrQ_pool _connectionr\r chunk_leftgetlowerrg _init_lengthlength_remainingr)r$bodyrrrrrpreload_contentroriginal_responsepool connectionrrrrequest_method request_urlrtr_enc encodingss r%r&HTTPResponse.__init__sE* g~ . ."L)'2DL    , &<#$  "3' Jtc&6&6%>??J % 4 H !!"5r:@@B>FLL,=>  !DL!% 1 1. A 4::.ADJ$.?rcnURUR;aURRS5$g)z Should we redirect and where to? :returns: Truthy redirect location string if we got a redirect status code and valid location. ``None`` if redirect status and no location. ``False`` if not a redirect status code. locationF)rREDIRECT_STATUSESrrr#s r%get_redirect_location"HTTPResponse.get_redirect_locations. ;;$00 0<<##J/ /rcUR(aUR(dgURRUR5 SUlgr))rr _put_connr#s r% release_connHTTPResponse.release_conns4zz!1!1  T--.rcfUR5 g![[[[4a gf=f)z Read and discard any remaining HTTP response data in the response connection. Unread data in the HTTPResponse connection blocks the connection from being released back to the pool. N)rr SocketErrorr r r#s r% drain_connHTTPResponse.drain_conns+   IIK; mD   s 00c~UR(a UR$UR(aURSS9$g)NT) cache_content)rrrr#s r%r4HTTPResponse.data%s2 ::::  8899490 0 rcUR$r))rr#s r%rHTTPResponse.connection.src,[UR5$r))rrr#s r%isclosedHTTPResponse.isclosed2sDHH%%rcUR$)z Obtain the number of bytes pulled over the wire so far. May differ from the amount of content returned by :meth:``urllib3.response.HTTPResponse.read`` if bytes are encoded on the wire (e.g, compressed). )rr#s r%tellHTTPResponse.tell5s """rcURRS5nUbUR(a[R S5 g[ UR S5Vs/sHn[U5PM sn5n[U5S:a[SU-5eUR5nUS:aSn[UR5nUS;dS Us=::aS :dO US :XaSnU$s snf![a SnNHf=f![a SnNDf=f) z= Set initial length value for Response content if available. zcontent-lengthNzReceived response with both Content-Length and Transfer-Encoding set. This is expressly forbidden by RFC 7230 sec 3.3.2. Ignoring Content-Length and attempting to process response as Transfer-Encoding: chunked.rfrz8Content-Length contained multiple unmatching values (%s)r)i0dHEAD) rrrlogwarningsetrgintlenrpop ValueErrorr)r$rlengthvallengthsrs r%rHTTPResponse._init_length=s!!"23  ||  " 6<<3DE3DCs3x3DEFwCIIK == #8#88 ,-= > ((.33C88wwyD$9$99AGGI8 y>>$01A$BDM" ) !s 1"CCcFU(dU$UR(aURRU5nU(aXR5- nU$!URa>nURR SS5R 5n[ SU-U5eSnAff=f)z> Decode the data passed in and potentially flush the decoder. rrzEReceived response with content-encoding: %s, but failed to decode it.N)rr2DECODER_ERROR_CLASSESrrrr _flush_decoder)r$r4r flush_decoderrrs r%_decodeHTTPResponse._decodesK }}}}//5  '') )D )) #||//0BBGMMO ')9:  s,AB "9BB cUR(a7URRS5nXRR5-$g)zS Flushes the decoder. Should only be called if the decoder is actually being used. r)rr2r`)r$bufs r%rHTTPResponse._flush_decoders8 ==--**3/C,,.. .rc## SnSv SnU(dVUR(aURR5 UR(aURR5 UR(a1URR5(aUR5 ggg![a [URSS5e[a6nS[ U5;a [ U5e[URSS5eSnAf[ [4an[SU-U5eSnAff=f!U(dVUR(aURR5 UR(aURR5 UR(a1URR5(aUR5 fff=f7f)z Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. FNzRead timed out.zread operation timed outzConnection broken: %rT) SocketTimeoutrrr strrr rrrcloserrr)r$ clean_exitrs r%_error_catcherHTTPResponse._error_catchers + $ D*J**++113 ##$$**,&&4+B+B+K+K+M+M!!#,N&M! L'tzz49JKK L-SV;"1+%&tzz49JKK!;/ D#$;a$?CC D**++113 ##$$**,&&4+B+B+K+K+M+M!!#,N&sFGB-D2B G-*D/1DD/D**D//D22B!GGcUR(deSnU(aX:d!UR(aURU:a[R(d[R(d[ R S:a[R"5nSnUbUS:wagUb[X5nX-nOUnURRU5nU(dUR5$URU5 AUcM_US:waMgUR5$UbURRU5$URR5$)a Read a response with the thought that reading the number of bytes larger than can fit in a 32-bit int at a time via SSL in some known cases leads to an overflow error that has to be prevented if `amt` or `self.length_remaining` indicate that a problem may happen. The known cases: * 3.8 <= CPython < 3.9.7 because of a bug https://github.com/urllib3/urllib3/issues/2513#issuecomment-1152559900. * urllib3 injected with pyOpenSSL-backed SSL-support. * CPython < 3.10 only when `amt` does not fit 32-bit int. i) ir) rrrIS_SECURETRANSPORT IS_PYOPENSSLsys version_infoioBytesIOminrwritegetvalue)r$amt c_int_maxbuffer max_chunk_amt chunk_amtr4s r%_fp_readHTTPResponse._fp_readsxxx ))d.C.Ci.O++""c&6&6&@ZZ\F$M+? #C 7I$C -Ixx}}Y/??$ $ T"+??$ $*-488==% Mdhhmmo MrcUR5 Uc URnURcgSn[URSS5nUR 5 U(dUR U5OSnUcSnOlSnUS:wadU(d]URR 5 SnUR(a0URS;a [URUR5eSSS5 W(ahU=R[U5- sl URbU=R[U5-slURXbU5nU(aX`l U$!,(df  N=f)a Similar to :meth:`http.client.HTTPResponse.read`, but with two additional parameters: ``decode_content`` and ``cache_content``. :param amt: How much of the content to read. If specified, caching is skipped because it doesn't make sense to cache partial content as the full response. :param decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. :param cache_content: If True, will save the returned data such that the same result is returned despite of the state of the underlying file object. This is useful if you want the ``.data`` property to continue working after having ``.read()`` the file object. (Overridden if ``amt`` is set.) NFclosedrTr)rN)rrrr+rrrrrrrrrr)r$rrrr fp_closedr4s r%rHTTPResponse.reads.*   !!00N 88   DHHh6  "-64==%CD{ $ % 1HTHHNN$$(M22t7L7LU8-T-@-@$BWBWXX7#:    3t9 , $$0%%T2%<<mDD!  O# "s B E E+c#0# UR(a0UR5(aURXS9HnUv M g[UR5(d7UR XS9nU(aUv [UR5(dM6gg7f)a A generator wrapper for the read() method. A call will block until ``amt`` bytes have been read from the connection or until the connection is closed. :param amt: How much of the content to read. The generator will return up to much data per iteration, but may return less. This is particularly likely when using compressed data. However, the empty string will never be returned. :param decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. r)rrN)rsupports_chunked_reads read_chunkedrrr)r$rrliner4s r%streamHTTPResponse.streamYst <22ww(55g>(9Ha(  88II88     rcN[R"S[SS9 UR$)Nz|HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.rAcategory stacklevel)warningswarnDeprecationWarningrr#s r% getheadersHTTPResponse.getheaderss&  O'  ||rcl[R"S[SS9 URR X5$)NzHTTPResponse.getheader() is deprecated and will be removed in urllib3 v2.1.0. Instead use HTTPResponse.headers.get(name, default).rAr)rrrrr)r$r-defaults r% getheaderHTTPResponse.getheaders1  V'  ||..rcUR$r))rr#s r%infoHTTPResponse.infos ||rcUR(dURR5 UR(aURR5 UR(d [ R RU5 ggr))rrrrrrIOBaser#s r%rHTTPResponse.closesN{{ HHNN        " " $ IIOOD !rc`UR(d)[RRR U5$UR cg[ UR S5(aUR R5$[ UR S5(aUR R$g)NTrr)rrr!r__get__rr\rr#s r%rHTTPResponse.closedsw99##++D1 1 XX  TXXz * *88$$& & TXXx ( (88?? "rcURc [S5e[URS5(aURR5$[S5e)Nz-HTTPResponse has no file to get a fileno fromfilenozOThe file-like object this HTTPResponse is wrapped around has no file descriptor)rIOErrorr\r'r#s r%r'HTTPResponse.filenosL 88 IJ J TXXx ( (88??$ $0 rcURbS[URS5(a7[URSS5(dURR5$ggg)Nr`rF)rr\r+r`r#s r%r`HTTPResponse.flushsP HH '**DHHh6688>># #7+ !rcg)NTr=r#s r%readableHTTPResponse.readablesrcUR[U55n[U5S:XagX!S[U5&[U5$ro)rr)r$btemps r%readintoHTTPResponse.readintos9yyQ  t9>!kD Nt9 rc.[URS5$)z Checks if the underlying file-like object looks like a :class:`http.client.HTTPResponse` object. We do this by testing for the fp attribute. If it is present we assume it returns raw chunks as processed by read_chunked(). fp)r\rr#s r%r#HTTPResponse.supports_chunked_readsstxx&&rcURbgURRR5nUR SS5Sn[ US5Ulg![ a UR5 [X5ef=f)N;rrrJ) rrr5readlinergrrrr)r$rs r%_update_chunk_length!HTTPResponse._update_chunk_lengthsq ?? & xx{{##%zz$"1% 1!$mDO 1 JJL$T0 0 1s A&BcXSnUcKURRUR5nUnURRS5 SUlU$XR:a3URRU5nURU- UlUnU$XR:XaAURRU5nURRS5 SUlUnU$URRUR5nURRS5 SUlU$)NrA)r _safe_readr)r$rreturned_chunkchunkvalues r% _handle_chunkHTTPResponse._handle_chunks ;HH''8E"N HH   ""DO?? "HH'',E"oo3DO"NOO #HH'',E HH   ""DO"N "XX00AN HH   ""DOrc#~# UR5 UR(d [S5eUR5(d [ S5eUR 5 UR (a>[UR 5(a$UR R5 SSS5 gURRc SSS5 gUR5 URS:XaO.URU5nURX2SS9nU(aUv MOU(aUR5nU(aUv URRR!5nU(dO US:XaOM5UR (aUR R5 SSS5 g!,(df  g=f7f)av Similar to :meth:`HTTPResponse.read`, but with an additional parameter: ``decode_content``. :param amt: How much of the content to read. If specified, caching is skipped because it doesn't make sense to cache partial content as the full response. :param decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. zHResponse is not chunked. Header 'transfer-encoding: chunked' is missing.zkBody should be http.client.HTTPResponse like. It should have have an fp attribute which returns raw chunks.NrF)rrs )rrrrr rrrrrr5r:rrArrr9)r$rrr?decodedrs r%rHTTPResponse.read_chunkeds~ ||$B **,,*P   "&&+>t?V?V+W+W''--/ # "xx{{"# "))+??a'**3/,,'!M--/!Mxx{{++-7? &&''--/S# " "s8AF=AF,& F=/F, F=CF,# F=, F:6F=cURbG[URR5(a#URRSR$UR$)z Returns the URL that was the source of this response. If the request that generated this response redirected, this method will return the final redirect location. )rrhistoryredirect_locationrr#s r%geturlHTTPResponse.geturlUsI << #DLL,@,@(A(A<<''+== =$$ $rc#L# /nURSS9HpnSU;aVURS5nSRU5US-S-v USSH nUS-v M US(aUS/nM[/nM_URU5 Mr U(aSRU5v gg7f)NTr rrrrG)rrgjoinappend)r$rr?xs r%__iter__HTTPResponse.__iter__`s[[[5E~ E*hhv&q1E99qAe)O%9#Bi[FF e$6 ((6" " sB"B$)rrrrrrrrrrrrrrrrrrrrr)rNrrNrTTNNNNNFNNT)NNF)iNr))NN)0r8r9r:r;rurrZrr&rrrpropertyr4rrrrrr(r rrrrrrrrr classmethodr rrrrrr'r`r-r2rr:rArrJrQr<r=rr%r{r{s@ * TF"1  $%ABF   11  &#2hC&%djj1 &,,0, 5$5$n.N`FP4@/"   $' 1,D0L %#rr{)2 __future__rrloggingrrr contextlibrsocketrrrrrZrr _collectionsr rr r exceptionsr r rrrrrrrrpackagesr util.responserr getLoggerr8robjectrr?rFrWrcrhr!r{r=rr%r_s&   %'+ (3   < !"V"@v@&@< "6* R #299R #r