ACC SHELL

Path : /usr/lib/python/
File Upload :
Current File : //usr/lib/python/zipfile.pyc

oMc@sdZddkZddkZddkZddkZddkZddkZddkZddkZyddk	Z	e	i
Z
Wn"ej
oeZ	ei
Z
nXddddddd	d
dg	Z
defdYZdefd
YZeZdd>dZdd>Zdd>dZdZdZdZdZeieZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&eie%Z'dZ(dZ)dZ*dZ+dZ,dZ-dZ.dZ/dZ0dZ1dZ2dZ3d Z4d!Z5d"Z6d#Z7dZ8d$Z9d%Z:d&Z;d'Z<eie;Z=dZ>dZ?dZ@dZAdZBdZCdZDdZEdZFdZGdZHdZId(ZJd)ZKeieJZLd*ZMd+ZNeieMZOdZPdZQdZRdZSdZTdZUdZVdZWdZXdZYd,ZZd-Z[d.Z\de]fd/YZ^d0fd1YZ_d2fd3YZ`d	fd4YZad
eafd5YZbed6Zcedd7joecndS(8s
Read and write ZIP files.
iNt
BadZipfileterrort
ZIP_STOREDtZIP_DEFLATEDt
is_zipfiletZipInfotZipFilet	PyZipFiletLargeZipFilecBseZRS((t__name__t
__module__(((s/usr/lib/python2.6/zipfile.pyRscBseZdZRS(su
    Raised when writing a zipfile, the zipfile requires ZIP64 extensions
    and those extensions are disabled.
    (R	R
t__doc__(((s/usr/lib/python2.6/zipfile.pyRsiiiiis<4s4H2LHsPKiiiiiii	s<4s4B4HL2L5H2LsPKi
iii
iiiis<4s2B4HL2L2HsPKs<4sLQLsPKs
<4sQ2H2L4QsPKcCsOy5t|d}t|}|i|otSWntj
onXtS(s?Quickly see if file is a ZIP file by checking the magic number.trb(topent_EndRecDatatclosetTruetIOErrortFalse(tfilenametfpintendrec((s/usr/lib/python2.6/zipfile.pyRs
	c
Cs0|i|td|it}tit|\}}}}|tjo|S|djp
|djotdn|i|ttd|it}tit	|\
}}}	}
}}}
}}}|t
jo|S||t<||t<||t
<|
|t<||t<||t<||t<|S(sM
    Read the ZIP64 end-of-archive records and use that to update endrec
    iiis3zipfiles that span multiple disks are not supported(tseektsizeEndCentDir64LocatortreadtstructtunpacktstructEndArchive64LocatortstringEndArchive64LocatorRtsizeEndCentDir64tstructEndArchive64tstringEndArchive64t_ECD_SIGNATUREt_ECD_DISK_NUMBERt_ECD_DISK_STARTt_ECD_ENTRIES_THIS_DISKt_ECD_ENTRIES_TOTALt	_ECD_SIZEt_ECD_OFFSET(RtoffsetRtdatatsigtdisknotrelofftdiskstsztcreate_versiontread_versiontdisk_numtdisk_dirtdircountt	dircount2tdirsizet	diroffset((s/usr/lib/python2.6/zipfile.pyt
_EndRecData64s(
0







cCs|idd|i}y|itdWntj
od	SX|i}|dd!tjo_|ddjoNtit	|}t
|}|id|i|tt|t|St
|d
td}|i|d|i}|it}|djo|||t!}t
tit	|}||t}|tt|jo7|i||i||t|||||Snd	S(sReturn 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.iiiittiiNi(RttelltsizeEndCentDirRtNoneRtstringEndArchiveRRtstructEndArchivetlisttappendR6tmaxtrfindt_ECD_COMMENT_SIZEtlen(RtfilesizeR(RtmaxCommentStarttstarttrecDatatcomment((s/usr/lib/python2.6/zipfile.pyRs6%


cBsGeZdZdZdddZdZdZdZdZRS(s>Class with attributes describing each file in the ZIP archive.t
orig_filenameRt	date_timet
compress_typeRHtextrat
create_systemR.textract_versiontreservedt	flag_bitstvolumet
internal_attrt
external_attrt
header_offsettCRCt
compress_sizet	file_sizet	_raw_timetNoNameiiicCs||_|itd}|djo|d|!}ntidjo)ti|jo|itid}n||_||_t|_	d|_
d|_ti
djo
d|_n
d|_d|_d|_d|_d|_d|_d|_d|_dS(Nit/R8twin32ii(RItfindtchrtostseptreplaceRRJRRKRHRLtsystplatformRMR.RNRORPRQRRRS(tselfRRJt	null_byte((s/usr/lib/python2.6/zipfile.pyt__init__s*	
 					
							cCs|i}|ddd>|dd>B|dB}|dd>|d	d>B|ddB}|id
@od}}}n|i}|i}|i}|i}|tjp
|tjold}|ti|dti	|d	||}d}d}t
d
|i|_t
d
|i|_n|i
\}	}
titt|i|i|
|i|||||t|	t|
}||	|S(s'Return the per-file header as a string.iii	iiiiiiis<HHQQli-(RJRPRURVRWRLtZIP64_LIMITRtpacktcalcsizeR@RNR.t_encodeFilenameFlagststructFileHeadertstringFileHeaderRORKRC(RctdttdosdatetdostimeRURVRWRLtfmtRRPtheader((s/usr/lib/python2.6/zipfile.pyt
FileHeader)s0	&&				 cCsxt|itoQy|iid|ifSWqttj
o!|iid|idBfSXn|i|ifSdS(Ntasciisutf-8i(t
isinstanceRtunicodetencodeRPtUnicodeEncodeError(Rc((s/usr/lib/python2.6/zipfile.pyRiKs#cCs*|id@o|iidS|iSdS(Nisutf-8(RPRtdecode(Rc((s/usr/lib/python2.6/zipfile.pyt_decodeFilenameTscCs|i}ti}xp|oh|d|d \}}|djo0|djo|d|dd!}nv|djo|d|dd	!}nO|d
jo|d|dd!}n(|d
jo
d}ntd|fd
}|idjo|||_|d7}n|idjo|||_|d7}n|idjo$|i}|||_|d7}qrn||d}qWdS(Ns<HHiiis<QQQiis<QQiis<QiisCorrupt extra field %sll((ll(RLRRtRuntimeErrorRWRVRT(RcRLRttptlntcountstidxtold((s/usr/lib/python2.6/zipfile.pyt_decodeExtraZs6		







	
(s
orig_filenamesfilenames	date_times
compress_typescommentsextras
create_systemscreate_versionsextract_versionsreserveds	flag_bitssvolumes
internal_attrs
external_attrs
header_offsetsCRCs
compress_sizes	file_sizes	_raw_time(iiiiii(	R	R
Rt	__slots__ReRqRiRxR(((s/usr/lib/python2.6/zipfile.pyRs2&	"			t
_ZipDecryptercBsDeZdZdZeZdZdZdZdZRS(sClass to handle decryption of files stored within a ZIP archive.

    ZIP supports a password-based form of encryption. Even though known
    plaintext attacks have been found against it, it is still useful
    to be able to get data out of such a file.

    Usage:
        zd = _ZipDecrypter(mypwd)
        plain_char = zd(cypher_char)
        plain_text = map(zd, cypher_text)
    cCsd}dgd}xjtdD]\}|}xCtdD]5}|d@o|d?d@|A}q9|d?d@}q9W|||<q W|S(sGenerate a CRC-32 table.

        ZIP encryption uses the CRC32 one-byte primitive for scrambling some
        internal keys. We noticed that a direct implementation is faster than
        relying on binascii.crc32().
        l q[iiiii(trange(tpolyttabletitcrctj((s/usr/lib/python2.6/zipfile.pyt_GenerateCRCTables


cCs%|d?d@|i|t|Ad@AS(s(Compute the CRC32 primitive on one byte.iii(tcrctabletord(RctchR((s/usr/lib/python2.6/zipfile.pyt_crc32scCs=d|_d|_d|_x|D]}|i|q"WdS(NixV4igE#ixV4(tkey0tkey1tkey2t_UpdateKeys(Rctpwdtp((s/usr/lib/python2.6/zipfile.pyRes			cCsx|i||i|_|i|id@d@|_|iddd@|_|it|id?d@|i|_dS(Niliii(RRRR]R(Rctc((s/usr/lib/python2.6/zipfile.pyRscCsPt|}|idB}|||dAd?d@A}t|}|i||S(sDecrypt a single character.iiii(RRR]R(RcRtk((s/usr/lib/python2.6/zipfile.pyt__call__s

(	R	R
RRRRReRR(((s/usr/lib/python2.6/zipfile.pyRs					t
ZipExtFilecBskeZdZddZdZdZdZdZdZ	ddZ
dd	Zdd
ZRS(sZFile-like object for reading an archive member.
       Is returned by ZipFile.open().
    cCs||_||_d|_d|_d|_d|_t|_t|_d|_	d|_
|i|_|i|_t|_
d|_|i|_d	|_|itjotid|_ndS(
NlR8s
tri@ii(s
i(tfileobjt	decryptert
bytes_readt	rawbuffert
readbuffert
linebufferRteoft
univ_newlinestnlSepstlastdiscardRKRVtclosedtmodeRtnametcompreadsizeRtzlibt
decompressobjtdc(RcRtzipinfotdecrypt((s/usr/lib/python2.6/zipfile.pyRes$													cCs-||_d|_|io
d|_ndS(Ns
s
s
(s
(s
s
s
(RR(RcR((s/usr/lib/python2.6/zipfile.pytset_univ_newliness		
cCs|S(N((Rc((s/usr/lib/python2.6/zipfile.pyt__iter__scCs$|i}|p
tn|S(N(treadlinet
StopIteration(Rctnextline((s/usr/lib/python2.6/zipfile.pytnexts
cCs
t|_dS(N(RR(Rc((s/usr/lib/python2.6/zipfile.pyRscCsd\}}|io|i|idfdjo|id|_nxK|iD]<}|ii|}|djot|}||fSqQWn||fS(Niis
s
i(ii(s
s
(RRRR\RC(RctnltnllenR_((s/usr/lib/python2.6/zipfile.pyt_checkfornewlines


icCsL|djo
ti}n|djodS|i\}}|djot||}n|t|i8}xt|djof|djoY|it|d}|pPn|i|7_|t|8}|i\}}qtW|djo|i}d|_|S|i| }|i|||!|_|i|||_|dS(sZRead a line with approx. size. If size is negative,
           read a whole line.
        iR8ids
(RatmaxintRtminRCRRR(RctsizeRRtbufts((s/usr/lib/python2.6/zipfile.pyRs0




		
cCs>g}x1to)|i}|pPn|i|q	W|S(stReturn a list with all (following) lines. The sizehint parameter
        is ignored in this implementation.
        (RRR?(Rctsizehinttresulttline((s/usr/lib/python2.6/zipfile.pyt	readlines)scCs|djodS|i|i}|idj	o|d8}n|dj	o|djo|itjo&t|i}t|||}q|it	joIt|i|jo
d}qt|i
}t||i|}qn||i|ijo|i|i}n|djo|ii
|}|it|7_|i
|7_
|i
o|i
}d|_
|o/|idj	odit|i|}n|ou|it	joe|ii|}|ii|_
|io6t|i
djo ||ii7}d|_q)n|i|7_q@n|djpt|i|jo|i}d|_n|i| }|i||_|S(NiR8i(RVRRR;RKRRCRRRRRRRtjointmapRt
decompresstunconsumed_tailRtflush(RcRtbytesToReadtlrtbytestnewdata((s/usr/lib/python2.6/zipfile.pyR4sL



		 #	

N(
R	R
RR;ReRRRRRRRR(((s/usr/lib/python2.6/zipfile.pyRs					,cBseZdZdZdeedZdZdZ	dZ
dZdZdZ
d	Zd
ZddZdddZddd
ZddddZdZdZdddZdZdZdZRS(sd Class with methods to open, read, write, close, list zip files.

    z = ZipFile(file, mode="r", compression=ZIP_STORED, allowZip64=False)

    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" or append "a".
    compression: ZIP_STORED (no compression) or ZIP_DEFLATED (requires zlib).
    allowZip64: if True ZipFile will create files with ZIP64 extensions when
                needed, otherwise it will raise an exception when this would
                be necessary.

    Rc	CsH|djotdn|tjon/|tjotp
tdq\n
td||_t|_d|_h|_g|_	||_
|idd	d|_}d|_d	|_t|tod|_||_hd
d6dd6dd6}yt||||_Wqtj
o;|djo$d}}t||||_qbqXn(d
|_||_t|dd|_|djo|in|djon|djoQy$|i|ii|idWqDtj
o|iiddqDXn.|ip|iid|_ntddS(s>Open the ZIP file with mode read "r", write "w" or append "a".Rtwtas(ZipFile() requires mode "r", "w", or "a"s.Compression requires the (missing) zlib modules(That compression method is not supporteditbR8Rtwbsr+biRisMode must be "r", "w" or "a"N(RRR(RyRRRt_allowZip64Rt
_didModifytdebugt
NameToInfotfilelisttcompressionR`RR;RRHRst
basestringt_filePassedRR
tfpRtgetattrt_GetContentst_RealGetContentsRt	start_dirRR(RctfileRRt
allowZip64tkeytmodeDict((s/usr/lib/python2.6/zipfile.pyRes\


											

		






cCsOy|iWn:tj
o.|ip|iid|_nnXdS(sORead the directory, making sure we close the file if the format
        is bad.N(RRRRRR;(Rc((s/usr/lib/python2.6/zipfile.pyRs


cCs|i}t|}|p
tdn|idjo	|GHn|t}|t}|t|_|t||}|t	t
jo|tt8}n|idjo||}dG|G|G|GHn|||_
|i|i
d|i|}ti|}d}x||jo|it}	|	dd!tjo
tdntit|	}	|idjo	|	GHn|i|	t}
t|
}|i|	t|_|i|	t|_|	t|_|	dd!\|_|_|_ |_!|_"|_#}}
|_$|_%|_&|	d	d
!\|_'|_(|_)||_*|
d?d|
d
?d	@|
d@|d?|d
?d@|d@df|_+|i,|i||_|i-|_.|i/i0|||i1|i.<|t|	t|	t|	t}|idjo
dG|GHqqWdS(s/Read in the table of contents for the ZIP file.sFile is not a zip fileiisgiven, inferred, offsetiis&Bad magic number for central directoryiiii	iiiii?ttotalN(2RRRRR%R&t_ECD_COMMENTRHt
_ECD_LOCATIONR RRRRRRt	cStringIOtStringIOtsizeCentralDirtstringCentralDirRRtstructCentralDirt_CD_FILENAME_LENGTHRt_CD_EXTRA_FIELD_LENGTHRLt_CD_COMMENT_LENGTHt_CD_LOCAL_HEADER_OFFSETRTR.RMRNRORPRKRURVRWRQRRRSRXRJRRxRRR?R(RcRRtsize_cdt	offset_cdtconcattinferredR(RtcentdirRtxtttd((s/usr/lib/python2.6/zipfile.pyRs\	
	






	
I	&
"cCs.g}x!|iD]}|i|iqW|S(s+Return a list of file names in the archive.(RR?R(RctlR(((s/usr/lib/python2.6/zipfile.pytnamelists

cCs|iS(sJReturn a list of class ZipInfo instances for files in the
        archive.(R(Rc((s/usr/lib/python2.6/zipfile.pytinfolistscCsJdd	GHx:|iD]/}d|id }d|i||ifGHqWdS(
s+Print a table of contents for the zip file.s%-46s %19s %12ss	File NamesModified    tSizes%d-%02d-%02d %02d:%02d:%02dis
%-46s %s %12dN(s	File NamesModified    R(RRJRRW(Rctzinfotdate((s/usr/lib/python2.6/zipfile.pytprintdirs
	
cCsid}x\|iD]Q}y1|i|id}x|i|oq1WWqtj
o|iSXqWdS(s%Read all the files and check the CRC.iiRNi(RR
RRR(Rct
chunk_sizeRtf((s/usr/lib/python2.6/zipfile.pyttestzip&s
	cCs7|ii|}|djotd|n|S(s,Return the instance of ZipInfo given 'name'.s(There is no item named %r in the archiveN(RtgetR;tKeyError(RcRtinfo((s/usr/lib/python2.6/zipfile.pytgetinfo3s

cCs
||_dS(s)Set default password for encrypted files.N(R(RcR((s/usr/lib/python2.6/zipfile.pytsetpassword<scCs|i|d|iS(s)Return file bytes (as a string) for name.R(R
R(RcRR((s/usr/lib/python2.6/zipfile.pyR@scCsb|djo
tdn|ip
tdn|io
|i}nt|id}t|to
|}n|i|}|i|i	d|i
t}|dd!tjo
t
d	ntit|}|i
|t}|to|i
|tn||ijot
d
|i|fn|id@}d}	|o|p
|i}n|ptd|nt|}	|i
d
}
t|	|
dd
!}|id@o|id?d@}n|id?d@}t|d|jotd|qn|	djot||}
nt|||	}
d|jo|
itn|
S(s#Return file-like object for 'name'.RtUtrUs&open() requires mode "r", "U", or "rU"s3Attempt to read ZIP archive that was already closedRiis Bad magic number for file headers3File name in directory "%s" and header "%s" differ.is6File %s is encrypted, password required for extractioniiiiisBad password for file(RRsrUN(RyRRR
RRsRRRRTRtsizeFileHeaderRkRRRRjt_FH_FILENAME_LENGTHt_FH_EXTRA_FIELD_LENGTHRIRPR;RRRRXRURRRR(RcRRRtzef_fileRtfheadertfnametis_encryptedtzdRtht
check_bytetzef((s/usr/lib/python2.6/zipfile.pyR
DsZ











cCsSt|tp|i|}n|djoti}n|i|||S(s#Extract 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'.
        N(RsRRR;R^tgetcwdt_extract_member(RctmembertpathR((s/usr/lib/python2.6/zipfile.pytextracts

cCsE|djo|i}nx!|D]}|i|||q$WdS(sExtract 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().
        N(R;RR(RcRtmembersRR((s/usr/lib/python2.6/zipfile.pyt
extractalls

cCsy|dtiitiifjo1ttii|ddjo|d }n|iddjo tii||id}ntii||i}tii|}tii	|}|o%tii
|oti|n|iddjo)tii|pti
|n|S|i|d|}t|d}ti|||i|i|S(sbExtract the ZipInfo object 'member' to a physical
           file on the path targetpath.
        iiiRZRR(R^RR_taltsepRCt
splitdriveRRtnormpathtdirnametexiststmakedirstisdirtmkdirR
RtshutiltcopyfileobjR(RcR
t
targetpathRt	upperdirstsourcettarget((s/usr/lib/python2.6/zipfile.pyRs(## 

cCs
|i|ijo|iodG|iGHq1n|idjo
tdn|ip
tdn|itjoto
tdn|it	tfjo
tdn|i
tjo|ipt
dqn|itjo|ipt
d	q	nd
S(s6Check for errors before writing a file to the archive.sDuplicate name:RRs write() requires mode "w" or "a"s4Attempt to write ZIP archive that was already closeds.Compression requires the (missing) zlib modules(That compression method is not supporteds'Filesize would require ZIP64 extensionss+Zipfile size would require ZIP64 extensionsN(RR(RRRRRyRRKRRRRWRfRRRT(RcR((s/usr/lib/python2.6/zipfile.pyt_writechecks(







cCs|iptdnti|}ti|i}ti|i}|dd!}|djo
|}nti
iti
i|d}x,|dti
tifjo|d}qW|o|d7}nt||}|dd@d>|_|djo|i|_n
||_|i|_d|_|ii|_|i|t|_|oVd|_d|_d|_|ii|||i|i <|ii!|i"dSt#|d	}	d|_}
d|_}d|_}|ii!|i"|it$jot%i&t%i't%i(d
}
nd}
x{|	i)d}|pPn|t*|}t+||
d
@}
|
o#|
i,|}|t*|}n|ii!|q?|	i-|
o9|
i.}|t*|}|ii!|||_n
||_|
|_||_|ii}|ii/|idd|ii!t0i1d|i|i|i|ii/|d|ii|||i|i <dS(sLPut the bytes from filename into the archive under the name
        arcname.s7Attempt to write to ZIP archive that was already closediiiRZilNRiiilis<LLLi (2RRyR^tstattS_ISDIRtst_modettimet	localtimetst_mtimeR;RRRR_RRRSRRKtst_sizeRWRPR9RTR RRRVRURR?RRtwriteRqR
RRtcompressobjtZ_DEFAULT_COMPRESSIONtDEFLATEDRRCtcrc32tcompressRRRRRg(RcRtarcnameRKtstRtmtimeRJRRRURVRWtcmprRtposition((s/usr/lib/python2.6/zipfile.pyR(s




"
		
				




			
cCst|tpAtd|dtitid }|i|_d|_n|}|iptdnt	||_
|ii|_|i
|t|_t|d@|_|itjoGtititid}|i||i}t	||_n
|i
|_|ii|_|ii|i|ii||ii|id	@o/|iitid
|i|i|i
n|ii |||i!|i"<dS(
sWrite a file into the archive.  The contents is the string
        'bytes'.  'zinfo_or_arcname' is either a ZipInfo instance or
        the name of the file in the archive.RRJiiis7Attempt to write to ZIP archive that was already closedliis<LLLNi(#RsRR$R%RRKRSRRyRCRWR9RTR RRR,RURRR)R*R+R-RRVR(RqRPRRgRR?RR(Rctzinfo_or_arcnameRRtco((s/usr/lib/python2.6/zipfile.pytwritestr:s:



	
cCs|idS(s2Call the "close()" method in case the user forgot.N(R(Rc((s/usr/lib/python2.6/zipfile.pyt__del__ascCs|idjodS|idjo|iod}|ii}x|iD]}|d}|i}|ddd>|dd>B|d	B}|d
d>|dd>B|dd	B}g}|itjp|i	tjo0|i
|i|i
|i	d
}d
}	n|i}|i	}	|itjo|i
|id
}
n
|i}
|i}|o\t
iddt|ddt|||}td|i}td|i}
n|i}|i}
y|i\}}t
itt|
|i||i||i|||i|	|t|t|t|id|i|i|
}Wntj
otitt|
|i||i|i |i|||i|	|t|i!t|t|id|i|i|
fIJnX|ii"||ii"||ii"||ii"|iqNW|ii}|}||}|}|t#jp|tjp
|tjot
it$t%ddddd||||}|ii"|t
it&t'd|d}|ii"|t(|d}t(|d
}t(|d
}nt|it)jo2|i*djodt)}n|it) |_nt
it+t,dd||||t|i	}|ii"||ii"|i|ii-n|i.p|ii/nd|_dS(sJClose the file, and for mode "w" and "a" write the ending
        records.NRRiiii	iiiiils<HHtQii-i,is3Archive comment is too long; truncating to %d bytes(RR(0RR;RRR9RRJRWRfRVR?RTRLRRgRCR@RNR.RiRRRMRORKRURHRRRStDeprecationWarningRatstderrRPRR(tZIP_FILECOUNT_LIMITRRRRRtZIP_MAX_COMMENTRR=R<RRR(Rctcounttpos1RRlRmRnRLRWRVRTt
extra_dataRNR.RRPRtpos2tcentDirCounttcentDirSizet
centDirOffsettzip64endrectzip64locrectmsgR((s/usr/lib/python2.6/zipfile.pyRes

	&&
		
					

!	




N(R	R
RR;RRRReRRRRRRRRRR
RRRR R(R5R6R(((s/usr/lib/python2.6/zipfile.pyR|s*
;		@				
			N	%	R	'	cBs#eZdZddZdZRS(sDClass to create ZIP archives with Python library files and packages.R8c
Cstii|\}}tii|oitii|d}tii|o|od||f}n|}|iodG|GdG|GHn|i|dd!|\}}|io
dG|GHn|i||ti	|}|i
dx|D]}	tii||	}
tii|	\}}tii|
o:tiitii|
do|i|
|qq|djoJ|i|
dd!|\}}|io
dG|GHn|i||qqWq|io
d	G|GHnxti	|D]}	tii||	}
tii|	\}}|djoJ|i|
dd!|\}}|io
dG|GHn|i||qqWne|ddjo
t
d
n|i|dd!|\}}|io
dG|GHn|i||dS(
s,Add 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.pyo or module.pyc.
        This method will compile the module.py into module.pyc if
        necessary.
        s__init__.pys%s/%ssAdding package intasiitAddings.pysAdding files from directorys.Files added with writepy() must end with ".py"sAdding fileN(R^RtsplitRRtisfileRt
_get_codenameR(tlistdirtremovetsplitexttwritepyRy(
RctpathnametbasenametdirRtinitnameRR.tdirlistRRtroottext((s/usr/lib/python2.6/zipfile.pyRNs^



"










c
	CsD|d}|d}|d}tii|o/ti|iti|ijo
|}ntii|p%ti|iti|ijojddk}|io
dG|GHny|i||dt	Wn |i
j
o}|iGHnX|}n|}tii|d}	|od||	f}	n||	fS(	sReturn (filename, archivename) for the path.

        Given a module name path, return the correct file path and
        archive name, compiling if necessary.  For example, given
        /python/lib/string, return (/python/lib/string.pyc, string).
        s.pys.pycs.pyoiNt	Compilingis%s/%s(
R^RRIR!R&t
py_compileRtcompileR;RtPyCompileErrorRERH(
RcRORPtfile_pytfile_pyctfile_pyoRRWterrtarchivename((s/usr/lib/python2.6/zipfile.pyRJs*


%
%



(R	R
RRNRJ(((s/usr/lib/python2.6/zipfile.pyRsAc

sddk}|id}|djotid}n|p|ddjo|GHtidn|ddjoTt|d	jo|GHtidnt|dd
}|i|i	n%|ddjoOt|d	jo|GHtidnt|dd
}|i
dGHn|ddjot|djo|GHtidnt|dd
}|d	}x|iD]}|id
ot
ii||d	}nt
ii||}t
ii|}t
ii|pt
i|nt|d}|i|i||i	qW|i	n|ddjot|djo|GHtidnfdt|dddt}x.|d	D]"}	||	t
ii|	qW|i	ndS(NisE        Usage:
            zipfile.py -l zipfile.zip        # Show listing of a zipfile
            zipfile.py -t zipfile.zip        # Test if a zipfile is valid
            zipfile.py -e zipfile.zip target # Extract zipfile into target dir
            zipfile.py -c zipfile.zip src ... # Create zipfile from sources
        iis-ls-cs-es-tiRsDone testingis./Rcstii|o|i||tn`tii|oLxIti|D]4}|tii||tii||qMWndS(N(R^RRIR(RRRKR(tzfRtzippathtnm(taddToZip(s/usr/lib/python2.6/zipfile.pyRbqsRR(s-ls-cs-es-t(ttextwraptdedentR;RatargvtexitRCRRRRRt
startswithR^RRRRRR
R(RRRP(
targsRctUSAGER_toutRttgtttgtdirRtsrc((Rbs/usr/lib/python2.6/zipfile.pytmain7sd	


	

	 t__main__(eRRR^R$RaRtbinasciiRR!RR,tImportErrorR;t__all__t	ExceptionRRRRfR:R;RRR=R<RhR:R R!R"R#R$R%R&RBRRRRRt
_CD_SIGNATUREt_CD_CREATE_VERSIONt_CD_CREATE_SYSTEMt_CD_EXTRACT_VERSIONt_CD_EXTRACT_SYSTEMt
_CD_FLAG_BITSt_CD_COMPRESS_TYPEt_CD_TIMEt_CD_DATEt_CD_CRCt_CD_COMPRESSED_SIZEt_CD_UNCOMPRESSED_SIZERRRt_CD_DISK_NUMBER_STARTt_CD_INTERNAL_FILE_ATTRIBUTESt_CD_EXTERNAL_FILE_ATTRIBUTESRRjRkRt
_FH_SIGNATUREt_FH_EXTRACT_VERSIONt_FH_EXTRACT_SYSTEMt_FH_GENERAL_PURPOSE_FLAG_BITSt_FH_COMPRESSION_METHODt_FH_LAST_MOD_TIMEt_FH_LAST_MOD_DATEt_FH_CRCt_FH_COMPRESSED_SIZEt_FH_UNCOMPRESSED_SIZERRRRRRRRt_CD64_SIGNATUREt_CD64_DIRECTORY_RECSIZEt_CD64_CREATE_VERSIONt_CD64_EXTRACT_VERSIONt_CD64_DISK_NUMBERt_CD64_DISK_NUMBER_STARTt_CD64_NUMBER_ENTRIES_THIS_DISKt_CD64_NUMBER_ENTRIES_TOTALt_CD64_DIRECTORY_SIZEt_CD64_OFFSET_START_CENTDIRRR6RtobjectRRRRRRnR	(((s/usr/lib/python2.6/zipfile.pyt<module>s<$

		!	:;ZcI


ACC SHELL 2018