Jz`facsSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKr/SQrSur r r r r SrSrSrSrSrS rS \R(-rS\SSS4S jrS r"S S5r"SS\5r"SS\R65r"SS\R:5rSrSr "SS\RB5r"S!S\#S\$4Sjjr%\4SS.Sjjr&Sr'Sr(\)S :Xa\("5 gg)"N) BadGzipFileGzipFileopencompress decompress)irbwbrii ircsSU;aSU;a[SU<35eO*Ub [S5eUb [S5eUb [S5eURSS5n[U[[[ R 45(a [XU5nO;[US5(d[US 5(a[SXbU5nO [S 5eSU;a-[R"U5n[R"XsXE5$U$) NtbzInvalid mode: z0Argument 'encoding' not supported in binary modez.Argument 'errors' not supported in binary modez/Argument 'newline' not supported in binary modereadwritez1filename must be a str or bytes object, or a file) ValueErrorZreplace isinstancestrbytesosZPathLikerZhasattrZ TypeErrorioZ text_encodingZ TextIOWrapper)filenamemode compresslevelZencodingZerrorsZnewlineZgz_modeZ binary_files /usr/lib64/python3.13/gzip.pyrrs( d{ $;49: :   OP P  MN N  NO Oll3#G(S%566x-@ 6 " "gh&@&@tWXF KLL d{##H- vGGcsPUR[R"SU55 g)Nz>$' ' ::  ,::D JJ$ J<<ZZ0 0::DDJ<<&99>>$||"3D"89: :rcsURcXlOU=R[U5-slg[UR5UlSUlgr!)r&r"r#r$)r'r)rrr)Z_PaddedFile.prependgs= :: "L JJ#g, &J 4<<(  rcsTSUlSUlURRU5$r,)r&r"r%seek)r'Zoffrrr.Z_PaddedFile.seekps#  yy~~c""rcgNTr' rseekableZ_PaddedFile.seekableur)r"r$r%r&N)r) __name__ __module__ __qualname____firstlineno__r+rr)r.r4__static_attributes__r1rrr r Os  :# rr cs\rSrSrSrg)riyr1N)r6r7r8r9r:r1rrrrysrrcs,\rSrSrSrSrSrSrSrg)_WriteBufferStreami}csXlgr, gzip_file)r'r=rrr+Z_WriteBufferStream.__init__s"rcs8URRU5$r,)r= _write_raw)r'datarrrZ_WriteBufferStream.writes~~((..rcr/)NFr1r2r3rr4Z_WriteBufferStream.seekablesrcr/r0r1r2r3rwritableZ_WriteBufferStream.writabler5rr<N) r6r7r8r9r+rr4r@r:r1rrr;r;}s#/rr;cs^\rSrSrSrSS\SS4Sjr\S5rSr Sr U4Sjr Sr S r S rSS jrSS jrS r\S5rSr\R*4SjrSrSrSrSrSr\R:4SjrSSjrSr U=r!$)riNcsXU(a&SU;dSU;a[SRU55eU(a SU;aUS- nUc%[R"X=(d S5=o@lUc+[ USS5n[ U[[45(dSnO[R"U5nUnUc [ USS5nURS 5(a8[Ul [U5n[R "U5UlXlOURS 5(aUcS SKnUR)S [*S 5 [,Ul UR/U5 [0R2"U[0R4[0R6*[0R8S 5UlXPl[>Ul [RB"[EU5UR@S9UlO[SRU55eX@l#UR[,:XaURIU5 gg)Nr ZUzInvalid mode: {!r}r r namerrZr)ZwZaZxrzGzipFile was opened for writing, but this will change in future Python releases. Specify the mode argument for opening it for writing.r)Z buffer_size)%rZformatbuiltinsr myfileobjZgetattrrrrrZfspathZ startswithREADr _GzipReaderrZBufferedReaderr"rAwarningsZwarnZ FutureWarningWRITE _init_writezlibZ compressobjZDEFLATED MAX_WBITSZ DEF_MEM_LEVELr _write_mtime_WRITE_BUFFER_SIZE _buffer_sizeZBufferedWriterr;fileobj_write_gzip_header) r'rrrrNmtimeZorigmoderawrF rr+ZGzipFile.__init__sH SD[C4K188>? ? CtO CKD ?'/}}X|t'L LGn  w3Hhe 55yy*H <7FD1D ??3  DIg&C,,S1DL I ___ - - L"1 & DI   X & ,,]-1]].2nn_-1-?-?-. 0DM !&  2D ,,-?-E9=9J9JLDL188>? ? 99   # #M 2 rcsBURRR$r,)r"rQ _last_mtimer2r3rrPZGzipFile.mtimes||+++rcsr[UR5nSUSS-S-[[U55-S-$)Nz)ZreprrNhexZid)r'srr__repr__ZGzipFile.__repr__s8  !Ab'!C'#bh-7#==rcs~Xl[R"S5UlSUl/UlSUlSUlgNrr)rArIcrc32crcr-writebufbufsizeoffset)r'rrrrHZGzipFile._init_writes2 ::c?    rcst>UR5 URR5 [TU]5$r,)_check_not_closedr"flushsupertellr' __class__ rraZ GzipFile.tells+   w|~rcsfURRS5 URRS5 [RR UR 5n[ U[5(dURS5nURS5(aUSSnSnU(a[nURR[U5RS55 URnUc[R"5n[UR[!U55 U[":XaSnOU[$:XaS nOS nURRU5 URRS 5 U(aURRUS -5 gg![a SnGN f=f) Nszlatin-1s.gzrrsss)rNrrZpathZbasenamerArrZencodeZendswithZUnicodeEncodeErrorFNAMEZchrrKtimerint_COMPRESS_LEVEL_BEST_COMPRESS_LEVEL_FAST)r'rZfnameZflagsrPxfl rrOZGzipFile._write_gzip_headersP ;' 7# GG$$TYY/EeU++ Y/~~f%%cr  E 3u:,,Y78!! =IIKEs5z* 0 0C 2 2CC 3 7#  LL  uw / %" E sA*F F0/F0csUR5 UR[:waSSKn[ UR S5eUR c [S5eURRU5$)Nrz$write() on read-only GzipFile objectz!write() on closed GzipFile object) r^rrGerrnoOSErrorEBADFrNrr"r)r'r?ror*rrZGzipFile.write%sZ  99  %++'MN N << @A A||!!$''rcs[U[[45(a [U5nO[ U5nUR nUS:aUR RURRU55 U=RU- sl [R"XR5Ul U=RU- sl U$r!)rrZ bytearrayr#Z memoryviewZnbytesrNrrr-rIrYrZr])r'r?lengthr*rr>ZGzipFile._write_raw0s dUI. / /YFd#D[[F A: LL  t}}55d; < II Izz$1DH KK6 !K rcUR5 UR[:waSSKn[ UR S5eUR RU5$)Nrz$read() on write-only GzipFile object)r^rrDrorprqr"rr'r-ror*rrZ GzipFile.readAsD  99  %++'MN N||  &&rcsUR5 UR[:waSSKn[ UR S5eUS:a[ RnURRU5$)Nrz%read1() on write-only GzipFile object) r^rrDrorprqrDEFAULT_BUFFER_SIZEr"read1rtr*rrvZGzipFile.read1HsX  99  %++'NO O !8))D||!!$''rcrs)Nrz$peek() on write-only GzipFile object)r^rrDrorprqr"peek)r'nror*rrwZ GzipFile.peekUsD  99  %++'MN N||  ##rcsURSL$r,)rNr2r3rclosedZGzipFile.closed\s||t##rcsURnUbURR(agUR[:XaqURR 5 UR URR 55 [XR5 [XRS-5 O.UR[:XaURR5 SUlURnU(aSUl UR5 gg!SUlURnU(aSUl UR5 ff=f)N)rNr"ryrrGr_rrrrZr-rDcloserC)r'rNrCr*rr{ZGzipFile.close`s,, ?dll11  "yyE! ""$ dmm1134((+))j"89d" ""$DLI!%! DLI!%!s B3D4EcsUR5 UR[:XaiURR 5 UR R URR U55 UR R 5 ggr,)r^rrGr"r_rNrr)r'Z zlib_moderrr_ZGzipFile.flushts`  99  LL   LL  t}}229= > LL   rcs6URR5$r,)rNfilenor2r3rr|ZGzipFile.fileno|s ||""$$rcsxUR[:wa [S5eURR S5 g)NzCan't rewind in write moder)rrDrpr"r.r2r3rrewindZGzipFile.rewinds. 99 67 7 !rc(UR[:H$r,)rrDr2r3rreadableZGzipFile.readablesyyD  rcr~r,)rrGr2r3rr@ZGzipFile.writablesyyE!!rcr/r0r1r2r3rr4ZGzipFile.seekabler5rcsUR[:XaUR5 URR 5 U[ R :wa/U[ R:XaURU-nO [S5eXR:a [S5eXR- nSUR-n[X0R-5HnURU5 M URSX0R--5 UR$UR[:Xa+UR5 URRX5$UR$)NzSeek from end not supportedzNegative seek in write moderg)rrGr^r"r_rSEEK_SETZSEEK_CURr]rrprMZrangerrDr.)r'r]ZwhenceZcountchunkZirnrr.Z GzipFile.seeks 99   " " $ LL   $R[[(![[61F$%BCC #;<<[[(ED---E5$5$556 " 5! " JJu(9(9 9: ; {{ YY$   " " $<<$$V4 4{{rcsXUR5 URRU5$r,)r^r"readline)r'r-rrrZGzipFile.readlines#  ||$$T**r) rNrMrAr-rKr"r\rZrCrrr]r[rT)"r6r7r8r9rCrkr+ZpropertyrPrWrHrarOrr>rrvrwryr{rIZ Z_SYNC_FLUSHr_r|r}rr@r4rrr.rr: __classcell__rc@rrrsI $43TT3l,,> 0@ ("' ($$$"("..!%!"#%++.++rrcsURU5n[U5U:aDURU[U5- 5nU(d [S5eX#- n[U5U:aMDU$)NACompressed file ended before the end-of-stream marker was reached)rr#EOFError)fprxr?r  r _read_exactrsb 771:D d)a- GGAD M ">? ?  d)a- Krcs4URS5nUS:XagUS:wa[SU-5e[R"S[ US55up#nUS:wa [S5eU[ -(a.[R"S[ US55un[ X5 U[ -(a"URS 5nU(aUS :XaOM!U[-(a"URS 5nU(aUS :XaOM!U[-(a [ US5 U$) NrrrezNot a gzipped file (%r)z[TU][U5[R[R *S9 SUlSUlg)NwbitsT)r`r+r rIZ_ZlibDecompressorrJ _new_memberrS)r'rrcs rr+Z_GzipReader.__init__s> R$*@*@ $  0 rcsH[R"S5UlSUlgrX)rIrY_crc _stream_sizer2r3r _init_readZ_GzipReader._init_readsJJsO rcsB[UR5nUcgXlg)NFT)r_fprS)r'rrrrZ_GzipReader._read_gzip_headers"&txx0  %rcsUS:aUR5$U(dgURR(a8UR5 SUlUR "S0UR D6UlUR(a>UR5 UR5(dURUl gSUlURR(a;URR[5nURRX!5nOURRSU5nURR S:wa/URR#URR 5 US:waOWS:Xa [%S5eGMx[&R("X0R*5UlU=R,[/U5- slU=R[/U5- sl U$)NrrTFrr1)Zreadall _decompressoreof _read_eofr_decomp_factory _decomp_argsrr_pos_sizeZ needs_inputrrREAD_BUFFER_SIZEr unused_datar)rrIrYrrr#)r'r-ZbufZ uncompressrrrZ_GzipReader.reads !8<<> ! !!%%  #' %)%9%9&)''&)"!--//!%DJ#( !!--hhmm$45!//::3E !//::3E !!--4  !3!3!?!?@S cz BCCGLJJz995  S_, S_$ rcs[R"S[URS55upXR:wa/[ S[ U5<S[ UR5<35eX RS-:wa [ S5eSnUS:Xa#URRS5nUS:XaM#U(aURRU5 gg) N[TU]5 SUlgr0)r`_rewindrrbrdrrZ_GzipReader._rewindBs r) rSrrrrrrrrrr) r6r7r8r9r+rrrrrr:rrrrrErEs' 3j *  rrErZreturnc sUc[R"5nU[:XaSnOU[:XaSnOSn[R"SSSSS[ U5US5$) Nrrrz>"1+=>  $**\* *01 1 c,'*4 5AB B##L1~~ab!((1# rcsSSKJn U"SS9nUR5nURSSSS9 URS SS S9 URS S SS S9 URSSS/SS9 UR 5n[ nUR (a[nOUR(a[nURGHnUR(aUS:Xa>[SS[RRS9n[R RnOUSSS:wa[R""SU<35 [%US5n[&R$"USSS5nOkUS:Xa?[RRn[SS[R RUS9nO&[&R$"US5n[%US-S5nUR)[*5nU(dOUR-U5 M0U[R RLaUR/5 U[RRLdGMUR/5 GM g)Nr)ArgumentParserzeA simple command line interface for the gzip module: act like gzip, but do not delete the input file.)Z descriptionz--fastZ store_truezcompress faster)ZactionZhelpz--bestzcompress betterz-dz --decompresszact like gunzip instead of gzipargsZ*Z-r%)ZnargsZdefaultZmetavarrr )rrrNrfz.gzzfilename doesn't end in .gz: r )rrrNr)ZargparserZadd_mutually_exclusive_groupZ add_argumentZ parse_args_COMPRESS_LEVEL_TRADEOFFZfastrlZbestrkrrrsysZstdinZbufferZstdoutZexitrrBrrrr{) rZparserZgrouprrZargr(ZgrrRrmainrs'  ,-F  / / 1E x ;LM x ;LM t^L>@ cC5&I    D,M yy, , yy ??czbtSYY=M=MNJJ%%rs8u$HHrs%   G(6%ufeX  ///,@tT+Z+ ''TA'A  a+|&&a+H  "J_ ,//_ F(,KcK05K*"6$22.` zFr