,OSrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK r SSK r SSK r SSK r \ Rr SSKrSSKr/SQr"SS\5r"SS\5r\=rrSrS rS rSrS rS rS rS rSrSr Sr!Sr"Sr#Sr$\RJ"\#5r&Sr'Sr(Sr)Sr*Sr+Sr,Sr-Sr.S r/Sr0Sr1Sr2\RJ"\15r3Sr4Sr5Sr6Sr7Sr8Sr9Sr:Sr;S rSr?S r@SrAS rBS rCS!rDS"rES#rFSrGSrHS rIS$rJS%rKS&rLS'rMS(rN\RJ"\M5rOSrPSrQSrRSrSSrTSrUSrVSrWS rXSrYSrZSr[S)r\S*r]\RJ"\\5r^S+r_S,r`\RJ"\_5raSrbSrcSrdSreSrfSrgSrhSriS rjSrkS-rl"S.S/\m5rnS0roS1rpS2rqS3rrS4rs"S5S65rtSquS7rvS8rw"S9S:5rx"S;S<5ry0SS=_SS>_SS?_SS?_SS?_SS?_SS@_SSA_S SB_SSC_SS@_S SD_S SE_S#SF_SGSH_SISJ_SKSL_rzSMr{S^SNjr|SOr}"SPSQ5r~"SRSS5r"STSU\GR5r"SVSW\GR5r"SXSY5r"SZS[\5rS^S\jrSS]KJrJr g!\a Sr \Rr GNf=f!\a SrGN&f=f!\a SrGN0f=f)_zP Read and write ZIP files. XXX references to utf-8 need further investigation. N) BadZipFile BadZipfileerror ZIP_STORED ZIP_DEFLATED ZIP_BZIP2ZIP_LZMA is_zipfileZipInfoZipFile PyZipFile LargeZipFilePathc\rSrSrSrg)r'N)__name__ __module__ __qualname____firstlineno____static_attributes__r7/opt/alt/python313/lib64/python3.13/zipfile/__init__.pyrr'srrc\rSrSrSrSrg)r+zi Raised when writing a zipfile, the zipfile requires ZIP64 extensions and those extensions are disabled. rN)rrrr__doc__rrrrrr+srri -.?s<4s4H2LHsPK z<4s4B4HL2L5H2LsPK  @iz <4s2B4HL2L2HsPKz<4sLQLsPKz <4sQ2H2L4QsPKiPKc^\rSrSr\R "S5rS U4SjjrS Sjr\ S5r \ S5r \ S5r Sr U=r$) _Extra[TU]X5$N)super__new__)clsvalid __class__s rr=_Extra.__new__sws((rcX lgr;r@)selfr?r@s r__init___Extra.__init__srcURRUSS5up#U"USSU-U5USU-S4$![Ra SnSnN1f=f)Nr(r) FIELD_STRUCTunpackstructr)r>rawxidxlens rread_one_Extra.read_onesl ((//BQ8IC3w$<%s1T67|33|| CD s 9AAc#z# [U5nU(a%[RU5up2Uv U(aM$gg7fr;) memoryviewr7rO)r>datarestextras rsplit _Extra.splits0$ //$/KEKds5;;cX^SRU4SjURU555$)z'Remove Extra fields with specified IDs.rc3L># UHnURT;dMUv M g7fr;rD).0exxidss r _Extra.strip..s& %uuD  B%s$ $)joinrV)r>rSr\s `rstrip _Extra.strips+xx iio   rrDr;)rrrrrKStructrIr=rF classmethodrOrVr`r __classcell__rAs@rr7r7sW=='L)44  rr7cJ[U5(agg![a gf=f)NTF) _EndRecDataOSErrorfps r_check_zipfilerks4 r??      s  ""cSn[US5(a [US9nU$[US5n[U5nSSS5 U$!,(df  U$=f![a U$f=f)zQuickly see if a file is a ZIP file by checking the magic number. The filename argument may be a file or file-like object too. FreadrirbN)hasattrrkopenrh)filenameresultrjs rr r sx F 8V $ $#x0F M h%'+& M &% M   M s2A A AA A AA A"!A"c URU[- S5 UR[5n[ U5[:waU$[ R "[U5upEpgU[:waU$US:wdUS:a [S5eURU[- [- S5 UR[5n[ U5[:waU$[ R "[U5u pHpppnnU[:waU$XB['X['X['X[ 'X["'X[$'UU[&'U$![a Us$f=f)zE Read the ZIP64 end-of-archive records and use that to update endrec r&rr%z3zipfiles that span multiple disks are not supported)seeksizeEndCentDir64LocatorrhrmlenrKrJstructEndArchive64LocatorstringEndArchive64LocatorrsizeEndCentDir64structEndArchive64stringEndArchive64_ECD_SIGNATURE_ECD_DISK_NUMBER_ECD_DISK_START_ECD_ENTRIES_THIS_DISK_ECD_ENTRIES_TOTAL _ECD_SIZE _ECD_OFFSET)fpinoffsetendrecrSsigdisknoreloffdisksszcreate_version read_versiondisk_numdisk_dirdircount dircount2dirsize diroffsets r _EndRecData64rsF &22A6 99, -D 4y++ !'/H$!OC ''  {eaiNOO IIf..1AA1E 99% &D 4y$$   ($/0C^8Wi    !>' &?%- !"!* 9#F; ME  sD99 EEcURSS5 UR5nUR[*S5 UR [5n[ U5[:XawUSS[ :XajUSSS:Xaa[R"[U5n[U5nURS5 URU[- 5 [U[*U5$[U[- [- S5nURUS5 UR [[-5nUR[ 5nUS:aX%U[-n[ U5[:wag[[R"[U55nU[ nX%[-U[-U-nURU5 URXE-5 [XU-U- U5$g![a gf=f)zReturn data from the "End of Central Directory" record, or None. The data is a list of the nine items in the ZIP "End of central dir" record followed by a tenth item, the file seek offset of this record.rr&Nr(sr)rttellsizeEndCentDirrhrmrvstringEndArchiverKrJstructEndArchivelistappendrmaxZIP_MAX_COMMENTrfind_ECD_COMMENT_SIZE) rfilesizerSrmaxCommentStartstartrecData commentSizecomments rrgrg's IIaOyy{H  >/1% 99^ $D D ^# Qq %% RS [ /6F|  c h/0TN?F;;(_4~EqIOIIoq! 99_~5 6D JJ' (E zU>12 w<> )fmm$4g>?./ ^+E.,@,LM g o-.TU#:X#E#% % W sG G"!G"cUR[S55nUS:aUSUn[RS:wa4[RU;a UR [RS5n[R (aH[R S:wa4[R U;a UR [R S5nU$)zvTerminate the file name at the first null byte and ensure paths always use forward slashes as the directory separator.r/)findchrossepreplacealtsep)rq null_bytes r_sanitize_filenamercs  c!f%IA~Ai( vv}8+##BFFC0 yyRYY#%"))x*?##BIIs3 Orc\rSrSrSrSrSSjr\S5r\RS5rSr SS jr S r S r \SS S .Sjj5rSrSrg)r ivz>Class with attributes describing each file in the ZIP archive.) orig_filenamerq date_time compress_typecompress_levelrrU create_systemrextract_versionreserved flag_bitsvolume internal_attr external_attr header_offsetCRC compress_size file_size _raw_time _end_offsetcXl[U5nXlX lUSS:a [ S5e[ UlSUlSUlSUl [RS:XaSUl OSUl [Ul[UlSUlSUlSUlSUlSUlSUlSUlSUlg)Nrz+ZIP does not support timestamps before 1980rwin32r')rrrqr ValueErrorrrrrrUsysplatformrDEFAULT_VERSIONrrrrrrrrrr)rErqrs rrFZipInfo.__init__s%&h/ " Q<$ JK K("  <<7 "!"D "#D -.  rcUR$r;rrEs r_compresslevelZipInfo._compresslevels"""rcXlgr;r)rEvalues rrrs#rc\SURR<SUR<3/nUR[:wa<UR S[ RURUR5-5 URS- nURS-nU(a(UR S[R"U5-5 U(aUR SU-5 UR5nU(aUR(aUR SUR-5 U(aUR(aLUR[:wdURUR:waUR S UR-5 UR S 5 S RU5$) N)rArrqrrrcompressor_namesgetrstatfilemodeis_dirrrr_)rErrhiloisdirs r__repr__ZipInfo.__repr__s;'+~~'>'> NO    + MM-*..t/A/A/3/A/ACC D  2 %   & ( MM.4==+<< = MM.3 4  MM/DNN: ;$,,   : - ^^t11 1 MM-0B0BB C cwwvrNcURnUSS- S-USS--US-nUSS-US S--USS--nUR[-(aS=n=pgO$URnURnUR nUR nSn UcU[:=(d U[:nU(a?S n U[R"U S[R"U 5S - Xv5-nS nS n[n UR[:Xa[[U 5n O$UR[ :Xa[["U 5n [XR$5Ul[XR&5UlUR)5up[R"[*[,UR$UR.U URXCUXg[1U 5[1U55 n X-U-$) zReturn the per-file header as a bytes object. When the optional zip64 arg is None rather than a bool, we will decide based upon the file_size and compress_size, if known, False otherwise. rrr,r%r)r&r'r.r(z>5 5./ /C /-)((C ..MI  = +J}{/JE CFKK()6??3+?+A9]]E"I&M'K    *m[9K   8 +lK8K";0D0DE!+/B/BC"779-/?!114==)!//3* ]CJ 8  5((rcURRS5UR4$![a1 URRS5UR[-4s$f=f)Nasciiutf-8)rqencoderUnicodeEncodeError_MASK_UTF_FILENAMErs rrZipInfo._encodeFilenameFlagss[ V==''0$..@ @! V==''0$..CU2UU U Vs&)8A$#A$cURn[Rn[U5S:Ga:U"SUSS5upEUS-[U5:a[ SXE4-5eUS:XaUSUS-nUR S;aSnU"SUSS5uUlUSSnUR S :XaS nU"SUSS5uUlUSSnURS :XaS nU"SUSS5uUlOhUS:XabUSUS-nU"SUSS5upUS:XaEX:Xa@USSRS5n U (a[U 5Ul OSSK n U RSSS9 X%S-Sn[U5S:aGM9gg![Ra [ S WS 35Sef=f![Ran [ S5U eSn A f[an [ S5U eSn A ff=f)Nr(r9z"Corrupt extra field %04x (size=%d)r%)lrz File sizezCorrupt unicode path extra field (0x7075): invalid utf-8 bytes)rUrKrJrvrrrrrdecoderrqwarningswarnUnicodeDecodeError) rE filename_crcrUrJtplnrSfield up_version up_name_crcup_unicode_nameres r _decodeExtraZipInfo._decodeExtra s %jAoE5!9-FB!tc%j  !E!PQQV|Qr!t}F~~)MM +*0tBQx*@#ABx))[8 /.4T48.D+*#ABx))[8 /.4T48.D+*vQr!t} n.4UD!H.E+J!Q;+F*.qr(//'*B*,>,ODM+$MM*S`aMb Q$%LEO%jAoo&||F$'B(-wk&;rqarcnamerstrmtimerzinfos r from_fileZipInfo.from_file8sW h , ,yy*H WWX  RZZ(r{{+!AJ  Yq\D%8-I"y|d':2I ?G''""277#5#5g#>q#ABajRVVRYY//abkGajRVVRYY//  sNGG'!zzF2r9 EO   4 '  !jjEO rcURRS5(ag[RR(aMURR[RR [RR45$g)z2Return True if this archive member is a directory.rTF)rqendswithrrrrrs rrZipInfo.is_dir^sT == ! !# & & 77>>==))277;;*GH Hr)rrrrrrrrrrUrrrqrrrrrr)NoNamerr;)rrrrr __slots__rFpropertyrsetterrrrr rcr%rrrrrr r vsxHI0  L##$$,.)`V +!Z#D##J rr c\[S5HnUS-(a US- S- nMUS-nM U$)Nrr%l q[)range)crcjs r_gen_crcr2ps5 1X 7!8z)C AIC  Jrc^^^^^^SmSmSm[c"[[[[ S555q[mU4SjmUUUU4SjmUH nT"U5 M UU4SjnU$)NixV4igE#ixV4c$>US- TX- S-- $)z(Compute the CRC32 primitive on one byte.rr)chr0crctables rcrc32_ZipDecrypter..crc32sqHch$%6777rc\>T"UT5mTTS--S-mTS-S-S-mT"TS- T5mg)Nr6rir%r)cr9key0key1key2s r update_keys"_ZipDecrypter..update_keyssEQ~t $ 2y 1$ 2TRZ&rc>[5nURnUH(nTS-nX4US- -S- S--nT"U5 U"U5 M* [U5$)zDecrypt a bytes object.r&r%rr6) bytearrayrbytes)rSrrrr=kr@rAs r decrypter _ZipDecrypter..decryptersZAqA !9"d* *A N 1I  V}r) _crctablermapr2r/) pwdprGr9r8r>r?r@rAs @@@@@@r _ZipDecrypterrMsc D D DXuSz23 H8''A  rc,\rSrSrSrSrSrSrSrg)LZMACompressoricSUlgr;_comprs rrFLZMACompressor.__init__s  rc0[R"S[R05n[R"[R[R "[RU5/S9Ul[R"SSS[U55U-$)Nr@filtersz?FE4##$E 100..t/@/@/3/?/?!e)/LNKDL##AIJ/D ((.<<## rriN)rrrrrFrorrrrrgrgs  rrgstoreshrinkreduceimplodetokenizedeflate deflate64bzip2rWterselz77awavpackbppmdcU[:XagU[:Xa[(d [S5egU[:Xa[ (d [S5egU[ :Xa[(d [S5eg[S5e)Nz.Compression requires the (missing) zlib modulez-Compression requires the (missing) bz2 modulez.Compression requires the (missing) lzma modulez(That compression method is not supported) rrzlib RuntimeErrorrbz2r rWNotImplementedError) compressions r_check_compressionrsj   $t@B B  !s?A A  t@B B""LMMrcjU[:Xa]Ub&[R"U[RS5$[R"[R[RS5$U[ :Xa.Ub[ R"U5$[ R"5$U[:Xa [5$g)N) rr compressobjDEFLATEDZ_DEFAULT_COMPRESSIONrr BZ2Compressorr rO)r compresslevels r_get_compressorrs $  $##M4==#F F : :DMM3OO ) #  $$$]3 3  "" ( "rcH[U5 U[:XagU[:Xa[R"S5$U[ :Xa[ R"5$U[:Xa [5$[RU5nU(a[SX4-5e[SU4-5e)Nrzcompression type %d (%s)zcompression type %d) rrrr decompressobjrrBZ2Decompressorr rgrrr)rdescrs r_get_decompressorrs}% " , &!!#&& ) #""$$ ( "!! $$]3 %&@MCY&YZ Z%&;}>N&NO Orc:\rSrSrSrSrS SjrS SjrSrSr g) _SharedFilei"cbXlX lX0lX@lXPlUR Ulgr;)_file_pos_close_lock_writingseekable)rEfileposcloselockwritings rrF_SharedFile.__init__#s&       rcUR$r;)rrs rr_SharedFile.tell+s yyrcUR UR5(a [S5eU[R:Xa)UR R URU-5 OUR R X5 UR R5UlURsSSS5 $!,(df  g=f)Nz}Can't reposition in the ZIP file while there is an open writing handle on it. Close the writing handle before trying to read.) rrrrSEEK_CURrrtrr)rErwhences rrt_SharedFile.seek.s ZZ}} "JKK$  F 23 / )DI99ZZs B#B:: CcRUR UR5(a [S5eURR UR 5 URR U5nURR5UlUsSSS5 $!,(df  g=f)NyCan't read from the ZIP file while there is an open writing handle on it. Close the writing handle before trying to read.)rrrrrtrrmrrEnrSs rrm_SharedFile.read;sp ZZ}} "JKK JJOODII &::??1%D )DIZZs BB B&chURb%URnSUlURU5 ggr;)rr)rEfileobjs rr_SharedFile.closeFs- :: !jjGDJ KK  "r)rrrrrrN)r) rrrrrFrrtrmrrrrrrr"s&  !rrc2\rSrSrSrSrSrSrSrSr g) _TellableiMcXlSUlgNrrjrrErjs rrF_Tellable.__init__Ns rcfURRU5nU=RU- slU$r;)rjwriter)rErSrs rr_Tellable.writeRs' GGMM$  q rcUR$r;)rrs rr_Tellable.tellWs {{rc8URR5 gr;)rjrdrs rrd_Tellable.flushZ  rc8URR5 gr;)rjrrs rr_Tellable.close]rrrN) rrrrrFrrrdrrrrrrrMs rrc^\rSrSrSrSrSrSrSSjrSr Sr SS jr SS jr S r SS jrS rSrSrSrU4SjrSr\R,4SjrSrSrU=r$) ZipExtFileiazOFile-like object for reading an archive member. Is returned by ZipFile.open(). i@iicXlX@lXPlURUlUR UlURUl[UR5Ul SUl SUl SUl SUlX lUR Ul[%US5(a"UR&Ul[+S5UlOSUlSUlUR15(a`UR35UlUR UlURUlUR,UlUR(UlSUlSUl U(akURB[D-(aURFS- S-nOUR&S- S-nURI5nXv:wa[KS URL-5egg![>a Nf=f) NFrrrTrr6r<zBad password for file %r)'_fileobj_pwd_close_fileobjr_compress_typer_compress_leftr_leftr _decompressor_eof _readbuffer_offsetnewlinesmoderqnameror _expected_crcr9 _running_crc _seekablerr_orig_compress_start_orig_compress_size_orig_file_size_orig_start_crc _orig_crcAttributeError _decrypterrrr_init_decrypterrr)rErrzipinforK close_fileobj check_bytehs rrFZipExtFile.__init__os  +%33%33&& .t/B/BC    $$ 7E " "!(D  %c D !%D  !!,3LLN)+2+@+@('.'8'8$'+'8'8$!%!3!3!%   #<<%//14< &kkR/47 $$&A"#=@U@U#UVV     sA5G GGc[UR5UlURR S5nU=R S-slURU5S$)Nrr.)rMrrrrmr)rErs rrZipExtFile._init_decryptersM' 2 ##B' r!v&r**rcSURR<SURR<3/nUR(dpUR SUR <35 UR [:wa<UR S[RUR UR 5-5 OUR S5 UR S5 SRU5$)Nr.z name=r [closed]rr) rArrclosedrrrrrrr_rErrs rrZipExtFile.__repr__s"nn77"nn99;<{{ MM 3 4""j0 1.2243F3F373F3FHHI MM+ & cwwvrcUS:aPURRSUR5S-nUS:a!URURUnX lU$[RR X5$)zbRead and return a line from the stream. If limit is specified, at most limit bytes will be read. r r%)rrrioBufferedIOBasereadline)rElimitilines rrZipExtFile.readlinesj 19  %%eT\\:Q>A1u'' a8    ))$66rczU[UR5UR- :apURU5n[U5UR:a(X RURS-UlSUlOU=R[U5-slURURURS-$)z6Returns buffered bytes without advancing the position.Nri)rvrrrm)rErchunks rpeekZipExtFile.peeks s4##$t||3 3IIaLE5zDLL(#(+;+;DLLM+J#J    E *  dllS.@AArc<UR(a [S5eg)NI/O operation on closed file.T)rrrs rreadableZipExtFile.readables ;;<= =rc"UR(a [S5eUbUS:ajURURSnSUlSUlUR(d0X R UR 5- nUR(dM0U$XR-nU[UR5:a!URURUnX0lU$U[UR5- nURURSnSUlSUlUS:arUR(daUR U5nU[U5:aX@lXlX$SU- nU$X$- nU[U5-nUS:aUR(dMaU$)z~Read and return up to n bytes. If the argument is omitted, None, or negative, data is read and returned until EOF is reached. zread from closed file.Nrr)rrrrr_read1MAX_Nrv)rErbufendrSs rrmZipExtFile.readsa ;;56 6 9A""4<<=1C"D DLii{{4::..iiiJ,, T%%& &""4<<4CLJ #d&&' 't||}- !eDII;;q>D3t9}#'  BQx  KC TNA!eDIII rcURcg[XR5UlUR(a3URUR:wa[ SUR -5egg)NzBad CRC-32 for file %r)rr9rrrr)rEnewdatas r _update_crcZipExtFile._update_crcs[    % !'+<+<= 99**d.@.@@5 AB BA9rcUbUS:avURURSnSUlSUlUR(d<URUR5nU(aX#- nU$UR(dM<U$XR-nU[ UR5:a!URURUnX@lU$U[ UR5- nURURSnSUlSUlUS:ahUR(dWURU5nU[ U5:aX0lXlX#SU- nU$U(aX#- nU$UR(dMWU$)z7Read up to n bytes with at most one read() system call.Nrr)rrrrrrv)rErrrSrs rread1ZipExtFile.read1 sX 9A""4<<=1C"D DLii{{4::.KCJ iii J,, T%%& &""4<<4CLJ #d&&' 't||}- q5ii{{1~s4y='+$#$L8OC KC iii rc*UR(dUS::agUR[:XaEURRnU[ U5:aX R U[ U5- 5- nOUR U5nUR[:XaURS:*UlGOUR[:Xa[XR5nURRX!5nURR=(d1 URS:*=(a URR(+UlUR(aX RR5- nOLURRU5nURR=(d URS:*UlUSURnU=R[ U5-slURS::aSUlURU5 U$)NrrT)rrrrunconsumed_tailrv_read2rrr MIN_READ_SIZErorlrdrrrs rrZipExtFile._read10s 99Q   , .%%55D3t9} AD M22;;q>D   * ,++q0DI  L 0A))*A%%009D++//@,,1@!//??? Iyy**0022%%006D**..J$2E2E2JDIKTZZ  c$i ::?DI  rcDURS::ag[XR5n[XR5nURR U5nU=R[ U5-slU(d[eURbURU5nU$)Nrr) rrrminrrmrvEOFErrorrrs rr ZipExtFile._read2Ts   ! # %% & && '}}!!!$ s4y(N ?? &??4(D rc>UR(aURR5 [TU] 5 g![TU] 5 f=fr;)rrrr<)rErAs rrZipExtFile.closeds4 "" ##% GMOEGMOs +=A cRUR(a [S5eUR$Nr)rrrrs rrZipExtFile.seekableks ;;<= =~~rcUR(a [S5eUR(d[R"S5eUR 5nU[ R:XaUnOHU[ R:XaX1-nO/U[ R:XaURU-nO [S5eX@R:a URnUS:aSnXC- nXPR-nUS:a#U[UR5:a X`l SnGOUR[:XaUR cUS:waSUlU[UR5UR- -nUR$R'U[ R5 U=R(U-slU=R*U-slUR(S:*UlSnSUl SUl OUS:aUR$R'UR.5 UR0UlUR4UlUR6UlURUlSUl SUl [9UR5UlSUlUnUR bUR=5 US:a3[?UR@U5nURCU5 XW-nUS:aM3UR 5$)Nzseek on closed file.!underlying stream is not seekablezCwhence must be os.SEEK_SET (0), os.SEEK_CUR (1), or os.SEEK_END (2)rrF)"rrrrUnsupportedOperationrrSEEK_SETrSEEK_ENDrrrvrrrrrrrtrrrrrrrrrrrr MAX_SEEK_READrm)rErrcurr_posnew_pos read_offset buff_offsetread_lens rrtZipExtFile.seekpsg ;;34 4~~))*MN N99; R[[ G r{{ "'G r{{ "**V3GCD D )) )**G Q;G( !LL0 !  c$2B2B.C C&LK  J .4??3J{^_O_!%D  3t//04<<? ?K MM  {BKK 8 JJ+ %J   ; .  aDIK"D DL 1_ MM  t88 9 $ 4 4D !%D "&":":D --DJ"D DL!243F3F!GD DI!K*$$&Ao4--{;H IIh   #KAo yy{rcUR(a [S5eUR(d[R"S5eUR UR - [UR5- UR-nU$)Nztell on closed file.r) rrrrrrrrvrr)rEfileposs rrZipExtFile.tells` ;;34 4~~))*MN N&&3c$:J:J6KKdllZr)rrrrrrrrrrrrrrrrrrrrrr)NFrr%)rrrrrrrrrFrrrrrrmrr rr rrrrrtrrrdres@rrras EMM37$1Wh + 7 B !FC#J"H  #%++?Brrcj^\rSrSrSr\S5r\S5r\S5rSr Sr U4Sjr S r U=r $) _ZipWriteFileicX lX0lXl[URUR 5UlSUlSUlSUl gr) _zinfo_zip64_zipfilerrr _compressor _file_size_compress_size_crc)rEzfr$rs rrF_ZipWriteFile.__init__sF   *5+>+>+0+?+?A rc.URR$r;)r.rjrs rr_ZipWriteFile._fileobjs}}rc.URR$r;)r,rqrs rr_ZipWriteFile.names{{###rcg)Nwbrrs rr_ZipWriteFile.modesrcg)NTrrs rwritable_ZipWriteFile.writablesrcUR(a [S5e[U[[45(a [ U5nO[ U5nURnU=RU- sl[XR5Ul UR(a9URRU5nU=R[ U5- sl URRU5 U$r)rrrrErDrvrRnbytesr0r9r2r/r`r1rr)rErSr@s rr_ZipWriteFile.writes ;;<= = dUI. / /YFd#D[[F 6!$ *   ##,,T2D   3t9 ,  D! rc >UR(ag[TU] 5 UR(aoURR 5nU=R [ U5- slURRU5 UR URl OURURl URURl URURlUR(d>UR[ :a [#S5eUR [ :a [#S5eURR$[&-(aUR(aSOSnURR[(R*"U[,URRURRURR55 URR/5UR0lOURR/5UR0lURR5URR65 URRURR9UR55 URR5UR0R25 UR0R:R=UR5 URUR0R>URR@'SUR0l!g!SUR0l!f=f)Nz*File size too large, try using force_zip64z0Compressed size too large, try using force_zip64z ' +/--*<*<*> ' ""4;;#<#<= ##DKK$:$:4;;$GH ""4==#:#:; MM " " ) )$++ 6=A[[DMM $ $T[[%9%9 :%*DMM "UDMM "s L-MM')r1r/r2r0r,r-r.)rrrrrFr,rrrr=rrrrdres@rr*r*sX  $$&++++rr*cB\rSrSrSrSrSrS\SS4SSS.SjjrSr S r S r S r S r S rS&SjrSrSrSr\S5r\R*S5rS&SjrS'SS.SjjrS(SjrS)SjrS*Sjr\S5rSrSrS*SjrS)Sjr S+S jr!S!r"S"r#S#r$S$r%S%r&g),r ia$Class with methods to open, read, write, close, list zip files. z = ZipFile(file, mode="r", compression=ZIP_STORED, allowZip64=True, compresslevel=None) file: Either the path to the file, or a file-like object. If it is a path, the file will be opened and closed by ZipFile. mode: The mode can be either read 'r', write 'w', exclusive create 'x', or append 'a'. compression: ZIP_STORED (no compression), ZIP_DEFLATED (requires zlib), ZIP_BZIP2 (requires bz2) or ZIP_LZMA (requires lzma). allowZip64: if True ZipFile will create files with ZIP64 extensions when needed, otherwise it will raise an exception when this would be necessary. compresslevel: None (default for the given compression type) or an integer specifying the level to pass to the compressor. When using ZIP_STORED or ZIP_LZMA this keyword has no effect. When using ZIP_DEFLATED integers 0 through 9 are accepted. When using ZIP_BZIP2 integers 1 through 9 are accepted. NrT)rmetadata_encodingc US;a [S5e[U5 X@lSUlSUl0Ul/UlX0lXPlX l SUl SUl X`l Xpl UR(aUS:wa [S5e[U[R 5(a[R""U5n[U[$5(a9SUlXlS S S S S S SS.nXn [*R,"X5UlOSUlXl[3USS5UlSUl[6R8"5UlSUlSUlUS:XaURA5 gUS;aNSUlUR.RC5Ul"UR.RGURD5 gUS:Xa7URA5 UR.RGURD5 g[S5e![0a X;aXn GM7ef=f![H[04a SUlgf=f![H[04a+ [KUR.5UlSUl"SUlgf=f![LaE UR.RGSS5 SUlUR.RC5Ul"gf=f! UR.n SUlUROU 5 e=f)zUOpen the ZIP file with mode read 'r', write 'w', exclusive create 'x', or append 'a'.)rIwxaz+ZipFile requires mode 'r', 'w', 'x', or 'a'FrNrrIz5metadata_encoding is only supported for reading filesrnw+bx+br+br:xb)rIrLrMrNrQrOrPTr%r)rLrMrNr&z"Mode must be 'r', 'w', 'x', or 'a')(rr _allowZip64 _didModifydebugrFrErrrrK_comment_strict_timestampsrJrrrrstr _filePassedrqrrprjrhgetattr _fileRefCnt threadingRLockrrr_RealGetContentsrrDrtrrr_fpclose) rErrr allowZip64rrrJmodeDictrrjs rrFZipFile.__init__0s + +JK K;'%  &*  "3!2  ! !dckGI I dBKK ( (99T?D dC  D  M"U%$T$@H~H ggd5DG  D G#D&$7DM__&  ' s{%%'##' /%)WW\\^DN/ T^^4 4))+GGLL0!!EFFc+#+#5  @+G4/)./'0+'0DG%&DN%*DN+ "4GGLLA&'+DO%)WW\\^DN4 BDG MM"  s4HK6 KI $%H. K5J  KH+)H+.IKIK 8JKJK A KKKK'LcU$r;rrs r __enter__ZipFile.__enter__s rc$UR5 gr;r)rEtyper tracebacks r__exit__ZipFile.__exit__s  rcSURR<SURR<3/nURbzUR(aUR SUR-5 O+UR bUR SUR -5 UR SUR-5 OUR S5 UR S5 SRU5$) Nrrz file=%rz filename=%rz mode=%rrrr) rArrrjrYrrqrr_rs rrZipFile.__repr__s"nn77"nn99;< 77  j47723* nt}}<= MM*tyy0 1 MM+ & cwwvrc HURn[U5nU(d [S5eURS:a [ U5 U[ nU[nU[Ul U[U- U- nU[[:XaU[[--nURS:aXT-n[ SXFU5 XE-UlURS:a [S5eUR!URS5 UR#U5n[$R&"U5nSnX:GaUR#[(5n [+U 5[(:wa [S5e[,R."[0U 5n U [2[4:wa [S5eURS:a [ U 5 UR#U [65n [9U 5n U [:n U [<-(aU R?S 5n O$U R?UR@=(d S 5n [CU 5n UR#U [D5U l#UR#U [H5U l%U [LU l'U SS u U l(U l)U l*U l+U l,U l-pU l.U l/U l0U RT[b:aS U RTS - -5eU SSuU l3U l4U l5Xl6US- S-US- S-US-US- US- S-US-S-4U l7U RqU 5 U RNU-U l'URrRuU 5 XRvU Rx'U[(-U [6-U [D-U [H-nURS:a [ SU5 X:aGMURn[{[}URrSS95HnUUl?URNnM g![a [S5ef=f)z/Read in the table of contents for the ZIP file.zFile is not a zip filer%r&zgiven, inferred, offsetrz Bad offset for central directoryzTruncated central directoryz&Bad magic number for central directoryrcp437rzzip file version %.1fr-r0r3r,rr)rr.r$totalcUR$r;)r)r$s r*ZipFile._RealGetContents..s u7J7Jr)keyN)@rjrgrhrrUprintrr _ECD_COMMENTrV _ECD_LOCATIONr|r{ryrurDrtrmrBytesIOsizeCentralDirrvrKrJstructCentralDir _CD_SIGNATUREstringCentralDir_CD_FILENAME_LENGTHr9 _CD_FLAG_BITSrrrJr _CD_EXTRA_FIELD_LENGTHrU_CD_COMMENT_LENGTHr_CD_LOCAL_HEADER_OFFSETrrrrrrrrrrMAX_EXTRACT_VERSIONrrrrrrr rErrFrqreversedsortedr)rErjrsize_cd offset_cdconcatinferredrSrpcentdirrqorig_filename_crcflagsrMtd end_offsetr$s rr^ZipFile._RealGetContentss WW 7 _F56 6 ::> &M#;' |,  &09< . !%7 7 '*AA BF ::>)H +Y& I"+ >>A ?@ @ "www ZZ oggn-G7|~- !>??mm$4g>G}%)99 !IJJzzA~gwww':;AG(: ;AO5.A,A>, A; 6A>;A>>BBc^URRU5nUc[SU-5eU$)z,Return the instance of ZipInfo given 'name'.z(There is no item named %r in the archive)rFrKeyError)rErinfos rgetinfoZipFile.getinfos9""4( <:TAC C rcU(a6[U[5(d![S[U5R-5eU(aXlgSUlg)z)Set default password for encrypted files.pwd: expected bytes, got %sN)rrE TypeErrorrhrrK)rErKs r setpasswordZipFile.setpassword$s; z#u--9DI-(a [=S5eU[@[B-(aURES5n O$URETRF=(d S5n XRH:wa['SURH<SU<S35eURJbURM5URN-URJ:azURJUR:XaFSSK(n U RSSURH<S3[TRVRY[Z54S9 O['SURH<S35eUR8[\-n U (afU(d TR^nU(a6[U[`5(d![cS[eU5Rf-5eU(d[iSU-5eOSn[kXbS-XSS5$! URm5 e=f)a%Return file-like object for 'name'. name is a string for the file name within the ZIP file, or a ZipInfo object. mode should be 'r' to read a file already in the ZIP file, or 'w' to write to a file newly added to the archive. pwd is the password to decrypt files (only used for reading). When writing, if the file size is not known in advance but may exceed 2 GiB, pass force_zip64 to use the ZIP64 format, which can handle large files. If the size is known in advance, it is best to pass a ZipInfo instance for name, with zinfo.file_size set. >rIrLzopen() requires mode "r" or "w"rLz'pwd is only supported for reading filesz2Attempt to use ZIP archive that was already closedrrr%c>TR$r;)rrsrrrZipFile.open..ts $--rzTruncated file headerz Bad magic number for file header)rz$compressed patched data (flag bit 5)zstrong encryption (flag bit 6)rrozFile name in directory z and header z differ.NrzOverlapped entries: z (possible zip bomb))skip_file_prefixesrz6File %r is encrypted, password required for extractionbT)7rrjrr rrrrr_open_to_writerr[rrr_rrmsizeFileHeaderrvrrKrJr _FH_SIGNATUREr_FH_FILENAME_LENGTH_FH_EXTRA_FIELD_LENGTHrtr_MASK_COMPRESSED_PATCHr_MASK_STRONG_ENCRYPTION_FH_GENERAL_PURPOSE_FLAG_BITSrrrJrrrrrrrrdirname__file___MASK_ENCRYPTEDrKrErrhrrrr) rErrrKrr$zef_filefheaderfname fname_strr is_encrypteds ` rrp ZipFile.openEsk z !>? ? DCKFG GwwDF F dG $ $E S[DME"&"2"2E #'#5#5E LL&E 3;&&u&F F ==FG G Atww(;(;#}}djj:OQ= mmN3G7|~- !899mm$4g>G}%)99 !CDDMM'*=">?E-. g&<=a H!77)*PQQ!88)*JKK458JJ!LL1 !LL)?)?)J7K /// **E344!!- %"5"558I8II$$(;(;;#MM.u/B/B.EF./,.GGOOH,E+G"I %.u/B/B.EF./00 !??_> GGLL ("gglln   e&&u-. T%00rcUc[R"5nO[R"U5nURXU5$)a8Extract a member from the archive to the current working directory, using its full name. Its file information is extracted as accurately as possible. `member' may be a filename or a ZipInfo object. You can specify a different directory using `path'. You can specify the password to decrypt the file using 'pwd'. )rgetcwdr_extract_member)rEmemberrrKs rextractZipFile.extracts4 <99;D99T?D##F#66rcUcUR5nUc[R"5nO[R"U5nUHnUR XAU5 M g)a Extract all members from the archive to the current working directory. `path' specifies a different directory to extract to. `members' is optional and must be a subset of the list returned by namelist(). You can specify the password to decrypt all files using 'pwd'. N)rrrrr)rErmembersrKrs r extractallZipFile.extractallsK ?mmoG <99;D99T?DG   4rcURnU(d*Sn[RUS[U5-5nX0lUR U5nSUR U55nUR SU55nU$)z;Replace bad characters and remove trailing dots from parts.z:<>|"?*_c3B# UHoRS5v M g7f)z .N)rstriprZrMs rr]1ZipFile._sanitize_windows_name..sB+Aa88D>>+Asc36# UHo(dM Uv M g7fr;rrs rr]r s7'QQqq's  )!_windows_illegal_name_trans_tablerX maketransrv translaterVr_)r>r!pathseptableillegals r_sanitize_windows_nameZipFile._sanitize_windows_namesr55GMM'3W+=>E49 1##E*B7==+AB,,7'77rc^[U[5(dURU5nURR S[ R R5n[ R R(aBUR [ R R[ R R5n[ R RU5SnS[ R R[ R R4m[ R RRU4SjUR[ R R555n[ R RS:Xa*URU[ R R5nU(d UR5(d [!S5e[ R RX$5n[ R R#U5n[ R R%U5nU(a9[ R R'U5(d[ R("USS9 UR5(a?[ R R+U5(d[ R,"U5 U$U$UR1XS 9n[1US 5n[2R4"Xg5 S S S 5 S S S 5 U$![.a) [ R R+U5(deU$f=f!,(df  NN=f!,(df  U$=f) zOExtract the ZipInfo object 'member' to a physical file on the path targetpath. rr%rc38># UHnUT;dM Uv M g7fr;r)rZrMinvalid_path_partss rr]*ZipFile._extract_member..s$#C.H&'/A&A$%1.Hs  \zEmpty filename.T)exist_ok)rKr:N)rr rrqrrrrrrcurdirpardirr_rVrrrrrexistsmakedirsrmkdirFileExistsErrorrpshutil copyfileobj) rEr targetpathrKr! upperdirssourcetargetrs @rrZipFile._extract_member s?&'**\\&)F//))#rww{{; 77>>oobggnnbggkkBG''$$W-a0 "''.."''..A''++""#CgmmBGGKK.H#CC 77;;$ 11'277;;GGv}}./ /WW\\*6 WW%%j1 GGOOJ/ RWW^^I66 KK D 1 ==??77==,,HHZ( :  YYvY '6 *d #v   v .$('77==445  $ #( 's64L M*M M/MM M M M)cURUR;a!SSKnURSUR-SS9 URS;a [ S5eUR (d [ S5e[UR5 UR(deSn[UR5[:aS nO-UR[:aS nOUR[:aS nU(a[!US -5egg) z6Check for errors before writing a file to the archive.rNzDuplicate name: %rr'rrLrMrNz&write() requires mode 'w', 'x', or 'a'z4Attempt to write ZIP archive that was already closed Files countFilesizez Zipfile size would require ZIP64 extensions)rqrFrrrrrjrrrSrvrEZIP_FILECOUNT_LIMITrrrr)rEr$rrequires_zip64s rrZipFile._writecheck>s >>T__ ,  MM.?AM N 99O +EF FwwFH H5../!N4==!%88!.;.!+$${2!/">#D$EFF rcVUR(d [S5eUR(a [S5e[R XUR S9nUR 5(a SUlSUlURU5 gUbX5l OURUl UbXEl OURUl [US5o`RUS5n[R "XgS5 SSS5 SSS5 g!,(df  N=f!,(df  g=f) zDPut the bytes from filename into the archive under the name arcname.7Attempt to write to ZIP archive that was already closedz>Can't write to ZIP archive while an open writing handle existsr rNrnrLi )rjrrr r%rWrrrrrrrrrprr)rErqr!rrr$srcdests rr ZipFile.writeUswwIK K ==P !!(484K4K"M <<>>"#E EI JJu (&3#&*&6&6#('4$'+'9'9$h%iis.Ct""3f5/D%%.C.C%%s$D D 8D D D D(c*[U[5(aURS5n[U[5(d[U[R "[R"55SSS9nUR UlURUl URRS5(aSUl U=RS-sl O SUl OUnUR(d [S 5eUR(a [S 5eUbX5lUbXEl [!U5UlUR$ UR'US S 9nUR)U5 SSS5 SSS5 g!,(df  N=f!,(df  g=f) zWrite a file into the archive. The contents is 'data', which may be either a 'str' or a 'bytes' instance; if it is a 'str', it is encoded as UTF-8 first. 'zinfo_or_arcname' is either a ZipInfo instance or the name of the file in the archive.rNr*)rqrriAr1rrz?Can't write to ZIP archive while an open writing handle exists.rL)r)rrXrr rrrrrrrqr(rrjrrrvrrrpr)rEzinfo_or_arcnamerSrrr$rs rwritestrZipFile.writestrvs@ dC ;;w'D*G44%5&*nnTYY[&A"1&EGE"&"2"2E #'#5#5E ~~&&s++&3###t+#&1#$EwwIK K ==Q   $"/   $#0 d) ZZ5s+t 4 ,Z++Zs$?FE3"F3 F =F Fc[U[5(a#UnUR5(d [S5eO[U[5(acUnUR S5(dUS- n[U5nSUlSUlSU-S-S-UlSUl U=RS-slO [S5eUR UR(a%URRUR5 URR!5UlUR$[&:XaU=R([*-slUR-U5 SUlUR0R3U5 X0R4UR6'URR9UR;S 55 URR!5UlS S S 5 g !,(df  g =f) z+Creates a directory inside the zip archive.z/The given ZipInfo does not describe a directoryrri@rr1zExpected type str or ZipInfoTFN)rr rrrXr(rrrrrrrrjrtrDrrrr rrrrTrErrFrqrr)rEzinfo_or_directory_namerr$directory_names rr ZipFile.mkdirsp -w 7 7+E<<>> !RSS" / 5 54N!**3//#%N+E"#E EI$+dNf#<"CE EO   4 ' :; ; ZZ~~ T^^,"&'',,.E ""h.#::   U #"DO MM  '.3OOENN + GGMM%**51 2!WW\\^DNZZs DG(( G6c$UR5 g)z2Call the "close()" method in case the user forgot.Nrgrs r__del__ZipFile.__del__s  rcURcgUR(a [S5eURS;alUR(a[UR  UR (a%URRUR5 UR5 SSS5 URnSUlURU5 g!,(df  N3=f!URnSUlURU5 f=f)zGClose the file, and for mode 'w', 'x' and 'a' write the ending records.NzvCan't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.r) rjrrrrTrrrtrD_write_end_recordr_rs rr ZipFile.closes 77?  ==PQ Q yyO+ZZ~~ T^^4**, BDG MM"  Z BDG MM" s$-CAC  C CC&Dc URGHnURnUSS- S-USS--US-nUSS-US S--USS--n/nUR[:dUR[:a;UR UR5 UR UR5 S nS nOURnURnUR [:aUR UR 5 S nO UR nURn Sn U(aS[RU S 5n [R"S S [U5--SS[U5-/UQ76U -n [n UR[:Xa[!["U 5n O$UR[$:Xa[![&U 5n [!XR(5n [!XR*5n UR-5up[R"[.[0U UR2XR4XRXCUR6Xv[U 5[U 5[UR85SUR:UR<U5nUR>RAU5 UR>RAU 5 UR>RAU 5 UR>RAUR85 GM UR>RC5n[UR5nUURD- nURDnSnU[F:aSnOU[:aSnO U[:aSnU(aURH(d[KUS-5e[R"[L[NSSSSSUUUU5 nUR>RAU5 [R"[P[RSUS5nUR>RAU5 [UUS5n[UUS 5n[UUS 5n[R"[V[XSSUUUU[URZ55 nUR>RAU5 UR>RAURZ5 UR\S:XaUR>R_5 UR>Ra5 g)Nrrr,r%r)r&r'r.r(rr(r9QrrzCentral directory offsetzCentral directory sizer,r"rrN)1rErrrrrrrUr7r`rKrrvrrrrrr rrrrrzr|rrrrrrrjrrrDrrSrrzr{rwrxrrrrVrtruncaterd)rEr$rrrrUrrr extra_datarrrrqrrpos2 centDirCount centDirSize centDirOffsetr zip64endrec zip64locrecrs rrZipFile._write_end_records]]EB!ut|)BqEQJ6A>GerkBqEQJ."Q%1*=GE,%% 3 U__- U001& * !OO % 3 3 ""[0 U001 * % 3 3 JK#\\*d; #[[CE N*qU|-&+-/9: , ""i/!-= $$0!, < !+/D/DEO .B.BCN"'"<"<"> Hkk"2"2N"'"5"5"+-@-@'"'))]"%h-Z#emmBT"#U%8%8%:M:M"/1G GGMM' " GGMM( # GGMM* % GGMM%-- (g#jww||~4==) T^^+   - -*N [ (7N ; &5N ##">#D$EFF ++"$6BAq, ],K GGMM+ & ++))1dA7K GGMM+ &|V4Lk:6K z:M-/?<(-T]]9KM  f  dmm$ 99  GG     rcURS:deU=RS-slUR(d#UR(dUR5 ggg)Nrr%)r[rYrrs rr_ZipFile._fpclose:sI!### A(8(8 HHJ)9r)rFrSrVrTrYr[rrrWrrrrUrErqrjrJrrKrDr;)rIN)F)NN)NNN)i)'rrrrrrjrrrFrdrjrr^rrrrrrr,rr-rmrprrrrcrrrrr rrrrr_rrrrr r s , B(,%"%:$#^:>RV^@ S-j9 &  ^^   mEm^(1T 75$  /bF.'+046D48'!R!,F,\|rr c:\rSrSrSrS\SS4SjrS SjrS rS r g) r iAzDClass to create ZIP archives with Python library files and packages.rITrc:[RXX#US9 XPlg)N)rrr`)r rF _optimize)rErrrr`optimizes rrFPyZipFile.__init__Ds!$$.  0!rNc[R"U5nU(aZU"U5(dMUR(a;[RR U5(aSOSn[ U<SU<S35 g[RR U5upV[RR U5(Ga:[RRUS5n[RRU5(GaU(a U<SU<3nOUnUR(a[ SUS U5 URUS S U5upUR(a [ S U 5 URX5 [[R"U55n U RS5 U GH@n [RRX5n [RRU 5up[RR U 5(aV[RR[RRU S55(aURXUS 9 MMUS:XdMU(a.U"U 5(d!UR(a[ SU -5 MURU S S U5upUR(a [ S U 5 URX5 GMC gUR(a [ SU5 [[R"U55Hn [RRX5n [RRU 5upUS:XdMKU(a.U"U 5(d!UR(a[ SU -5 MURU S S U5upUR(a [ S U 5 URX5 M gUS SS:wa [!S5eURUS S U5upUR(a [ SU 5 URX5 g)aNAdd all files from "pathname" to the ZIP archive. If pathname is a package directory, search the directory and all package subdirectories recursively for all *.py and enter the modules into the archive. If pathname is a plain directory, listdir *.py and enter all modules. Else, pathname must be a Python *.py file and the module will be put into the archive. Added modules are always module.pyc. This method will compile the module.py into module.pyc if necessary. If filterfunc(pathname) is given, it is called with every argument. When it is False, the file or directory is skipped. rr z skipped by filterfuncNz __init__.pyrzAdding package inasrAdding) filterfunc.pyzfile %r skipped by filterfunczAdding files from directoryz.Files added with writepy() must end with ".py"z Adding file)rrrUrrrurVr_isfile _get_codenamerrlistdirremovesplitextwritepyr)rEpathnamebasenamer-labeldirrinitnamerr!dirlistrqrrootexts rr4PyZipFile.writepyJs99X& j22zz"$''--"9"9vuhGH GGMM(+  77== " "ww||Hm>"'',,t]*KLL LL4>)@M%j.>.>#zz %&E&L M$)-););D2J.>#zz %&E&L M$)-););D2JSSKnTR(a [SU5 URUSUS9 g!URan[UR 5 SnAgSnAff=f)Nr CompilingT)doraiser&F) py_compilerUrucompilePyCompileErrormsg)rr&rBerrrEs r_compile)PyZipFile._get_codename.._compiles\ zzk4( ""4"I,, cgg s6A%A  A%r.z.pycr) optimizationr%r&rz"invalid value for 'optimize': {!r})r&rr) importlibutilcache_from_sourcer%rrr/rrrrr&formatrrV) rEr5r6rGfile_pyfile_pyc pycache_opt0 pycache_opt1 pycache_opt2r!rrE archivenames ` rr0PyZipFile._get_codenames e#f$ ~~77b7Q  ~~77a7P  ~~77a7P >>R x((''(#,,0@0I0II"**%''....'','00BGGG4D4M4MM%"''....'','00BGGG4D4M4MM%"''....'','00BGGG4D4M4MM%"G$$yy))Q. ,++q0 , ,&G&--EG~~"$"">>Q&(E^^q((E>EEdnnUC$S/)GGNN5))GGEN++rwww/?/H/HH$..A&--EggmmG,Q/ %-{;K##r)r%)rN) rrrrrrrFr4r0rrrrr r As!N"%: 2" P'dP$rr c^SSKnSnURUS9nURSS9nURSSSS S 9 URS S S SSS9 URSSSSSS9 URSSSSS 9 URSSSS 9 UR U5nUR nUR b]UR n[USUS9nUR5nSSS5 W(a[SRU55 [S5 gURb1URn[USUS9nUR5 SSS5 gURb4URupi[USUS9nURU 5 SSS5 gURGbU(a.[S [ R"S!9 [ R$"S"5 URR'S5n URn U4S#jm[U S$5nU Hn [(R*R-U 5n U (d<[(R*R-[(R*R/U 55n U S%[(R0[(R24;aS%n T"X|U 5 M SSS5 gg!,(df  GN=f!,(df  g=f!,(df  g=f!,(df  g=f)&Nrz3A simple command-line interface for zipfile module.) descriptionT)requiredz-lz--list zShow listing of a zipfile)metavarhelpz-ez --extractr&)rXz zExtract zipfile into target dir)nargsrYrZz-cz--create+)zzzCreate zipfile from sourcesz-tz--testzTest if a zipfile is validz--metadata-encodingz z2Specify encoding of member names for -l, -e and -trI)rJz.The following enclosed file is corrupted: {!r}z Done testingz/Non-conforming encodings not supported with -c.rr%c >[RRU5(aURX[5 g[RR U5(aU(aURX5 [ [R"U55HGnT"U[RRX5[RRX#55 MI ggr;) rrr/rrrrr1r_)r3rzippathnmaddToZips rr`main..addToZip sww~~d## 5t$$HHT+ D!12BRWW\\$3RWW\\'5NP3%rrLr)argparseArgumentParseradd_mutually_exclusive_group add_argument parse_argsrJtestr rrurMrrrrcreaterstderrexitpoprrr6rrr)argsrbrVparsergroupencodingrr3badfilerzip_namefilesrr^r`s @rmainrssGK  $ $ $ =F  / / / >E tX{79 t[<=? tZs39; tX{8: -|QS   T "D%%H yyii S# :bjjlG;  BII'R S n  ii S# :b KKM; :  !ll  S# :b MM& !; :   Czz # HHQK;;??1%  PXs #r''**40 gg..rwwt/DEGr299bii88 G7+ $ #) !!; :; : ; :.$ #s1J),J;,K BK) J8; K  K K+)r CompleteDirsr;)rbinasciiimportlib.utilrJrrrrrKrr\rrr9 ImportErrorrrW__all__ Exceptionrrrrrrrrrrr rrrrrrrrrr|r}r~rrrrrrvrwrzr|ryr{_CD_CREATE_VERSION_CD_CREATE_SYSTEM_CD_EXTRACT_VERSION_CD_EXTRACT_SYSTEMr~_CD_COMPRESS_TYPE_CD_TIME_CD_DATE_CD_CRC_CD_COMPRESSED_SIZE_CD_UNCOMPRESSED_SIZEr}rr_CD_DISK_NUMBER_START_CD_INTERNAL_FILE_ATTRIBUTES_CD_EXTERNAL_FILE_ATTRIBUTESrrrrrrrrrrr_FH_EXTRACT_VERSION_FH_EXTRACT_SYSTEMr_FH_COMPRESSION_METHOD_FH_LAST_MOD_TIME_FH_LAST_MOD_DATE_FH_CRC_FH_COMPRESSED_SIZE_FH_UNCOMPRESSED_SIZErrrwrxrurzr{ry_CD64_SIGNATURE_CD64_DIRECTORY_RECSIZE_CD64_CREATE_VERSION_CD64_EXTRACT_VERSION_CD64_DISK_NUMBER_CD64_DISK_NUMBER_START_CD64_NUMBER_ENTRIES_THIS_DISK_CD64_NUMBER_ENTRIES_TOTAL_CD64_DIRECTORY_SIZE_CD64_OFFSET_START_CENTDIRrCrEr7rkr rrgrr rIr2rMrOrgrrrrrrrrr*r r rs_pathrrtrrrrs    JJE     9    #       !12    $ !12     !!  #   " !12  ! %) //*CD""??#56!" ! U! H (V:x&rrr   #L"".8wxxx  x  x yzy{   !"#(N&  P$(!(!V(V""Vr X+B%%X+xh h Vk$k$\C,LCI D NNE  C  Ds4III+III('I(+I76I7