e1SrSSKrSSKr\Rr"SS\R 5r"SS\R5rg)z7Internal classes used by the gzip, lzma and bz2 modulesNc0\rSrSrSrSrSrSrSrSr g) BaseStream zMode-checking helper functions.c<UR(a [S5eg)NzI/O operation on closed file)closed ValueErrorselfs 2/opt/imh/python3.13/lib/python3.13/_compression.py_check_not_closedBaseStream._check_not_closed s ;;;< < cZUR5(d[R"S5eg)NzFile not open for reading)readableioUnsupportedOperationr s r _check_can_readBaseStream._check_can_read$}}))*EF FrcZUR5(d[R"S5eg)NzFile not open for writing)writablerrr s r _check_can_writeBaseStream._check_can_writerrcUR5(d[R"S5eUR5(d[R"S5eg)Nz3Seeking is only supported on files open for readingz3The underlying file object does not support seeking)rrrseekabler s r _check_can_seekBaseStream._check_can_seeksS}}))+FG G}}))+EF FrN) __name__ __module__ __qualname____firstlineno____doc__r rrr__static_attributes__rrr rr s)=GGFrrc^\rSrSrSrSrSSjrU4SjrSrSr SSjr S r S r \ R4S jrS rS rU=r$)DecompressReader!z5Adapts the decompressor API to a RawIOBase reader APIcg)NTrr s r rDecompressReader.readable$src XlSUlSUlSUlX lX@lUR"S0UR D6UlX0lg)NFrr)_fp_eof_pos_size_decomp_factory _decomp_args _decompressor_trailing_error)r fpdecomp_factorytrailing_error decomp_argss r __init__DecompressReader.__init__'sP   .'!11FD4E4EF .rc.>SUl[TU] 5$N)r2superclose)r __class__s r r=DecompressReader.close;s!w}rc6URR5$r;)r,rr s r rDecompressReader.seekable?sxx  ""rc[U5o"RS5nUR[U55nXCS[U5&SSS5 SSS5 [W5$!,(df  N!=f!,(df  N*=f)NB) memoryviewcastreadlen)r bview byte_viewdatas r readintoDecompressReader.readintoBsU ]dIIcNi99S^,D$(js4y !%3]4y%3N]]s"A1(A A1 A. *A11 A?c8US:aUR5$U(aUR(agSnURR(aURR=(d UR R [5nU(dOUR"S0URD6UlURRX15nOjURR(a2UR R [5nU(d [S5eOSnURRX15nU(aOGMU(dSUlURUlgU=R[!U5- slU$!URa MSf=f)NrrTzACompressed file ended before the end-of-stream marker was reachedr)readallr-r2eof unused_datar,rF BUFFER_SIZEr0r1 decompressr3 needs_inputEOFErrorr.r/rG)r sizerKrawblocks r rFDecompressReader.readHsX !8<<> !tyy!!%% ..::7 HHMM+6%)%9%9&)''&)"--88HD %%11#xx}}[9H#&(JKK$ #H))44XD12DIDJ SY  '++s4FFFc/nUR[R5=n(a9URU5 UR[R5=n(aM9SR U5$)Nr)rFsysmaxsizeappendjoin)r chunksrKs r rODecompressReader.readallqsXii ,,d, MM$ ii ,,d,xxrcURRS5 SUlSUlUR"S0UR D6Ulg)NrFr)r,seekr-r.r0r1r2r s r _rewindDecompressReader._rewind|s<  a  !11FD4E4EFrcU[R:XaOU[R:XaURU-nOU[R:XakUR S:aKUR [R5(a'UR [R5(aM'UR U-nO[SRU55eXR:aUR5 OXR-nUS:aSUR [[RU55nU(d UR$U[U5-nUS:aMSUR$)NrzInvalid value for whence: {}) rSEEK_SETSEEK_CURr.SEEK_ENDr/rFDEFAULT_BUFFER_SIZErformatrbminrG)r offsetwhencerKs r raDecompressReader.seeks R[[  r{{ "YY'F r{{ "zzA~ii 6 677ii 6 677ZZ&(F;BB6JK K II  LLN ii Fqj99S!7!7@ADyy c$i F qj yyrcUR$)z!Return the current file position.)r.r s r tellDecompressReader.tells yyr)r1r0r2r-r,r.r/r3)r)r+)rr r!r"r#rr8r=rrLrFrOrbrreraror$ __classcell__)r>s@r r&r&!sH?.(# 'R G #%++<rr&) r#rrZrhrRBufferedIOBaser RawIOBaser&rrr rts?= $$ F""F0Ar||Ar