tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
M\¬Qc    @s9dZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z yddl Z e j Z Wn ek
rÅeZ ej Z nXddddddd    d
d g    Zdefd „ƒYZd efd „ƒYZeZdd>dZdd>Zdd>dZdZdZdZdZejeƒZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&dZ'dZ(dZ)eje(ƒZ*dZ+dZ,dZ-dZ.dZ/dZ0dZ1dZ2dZ3dZ4dZ5dZ6d Z7d!Z8d"Z9d#Z:dZ;d$Z<d%Z=d&Z>d'Z?eje>ƒZ@dZAdZBdZCdZDdZEdZFdZGdZHdZIdZJdZKdZLd(ZMd)ZNejeMƒZOd*ZPd+ZQejePƒZRdZSdZTdZUdZVdZWdZXdZYdZZdZ[dZ\d,„Z]d-„Z^d.„Z_d/„Z`deafd0„ƒYZbd1fd2„ƒYZcid3d6d4d6d5d6d5d6d5d6d5d6d6d6d7d6d8d6d9d6d6d6d:d 6d;d"6d<d%6d=d>6d?d@6dAdB6ZddCe    jefdD„ƒYZfd    eafdE„ƒYZgd
egfdF„ƒYZhedG„ZiejdHkr5eiƒndS(Is
Read and write ZIP files.
iÿÿÿÿNt
BadZipfileterrort
ZIP_STOREDt ZIP_DEFLATEDt
is_zipfiletZipInfotZipFilet    PyZipFilet LargeZipFilecBseZRS((t__name__t
__module__(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRscBseZdZRS(su
    Raised when writing a zipfile, the zipfile requires ZIP64 extensions
    and those extensions are disabled.
    (R    R
t__doc__(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRsiiiiis<4s4H2LHsPKiiiiiii    s<4s4B4HL2L5H2LsPKi
i i i iiiis <4s2B4HL2L2HsPKs<4sLQLsPKs
<4sQ2H2L4QsPKcCs,yt|ƒrtSWntk
r'nXtS(N(t _EndRecDatatTruetIOErrortFalse(tfp((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt_check_zipfile†s   cCsgt}yIt|dƒr*td|ƒ}n$t|dƒ}t|ƒ}WdQXWntk
rbnX|S(sˆQuickly 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.
    treadRtrbN(RthasattrRtopenR(tfilenametresultR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRŽs c Csny|j|tdƒWntk
r,|SX|jtƒ}t|ƒtkrR|Stjt|ƒ\}}}}|tkr€|S|dks˜|dkr§t    dƒ‚n|j|tt
dƒ|jt
ƒ}t|ƒt
krä|Stjt |ƒ\
}}}    }
} } } }}}|t kr$|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(tseektsizeEndCentDir64LocatorRRtlentstructtunpacktstructEndArchive64LocatortstringEndArchive64LocatorRtsizeEndCentDir64tstructEndArchive64tstringEndArchive64t_ECD_SIGNATUREt_ECD_DISK_NUMBERt_ECD_DISK_STARTt_ECD_ENTRIES_THIS_DISKt_ECD_ENTRIES_TOTALt    _ECD_SIZEt _ECD_OFFSET(tfpintoffsettendrectdatatsigtdisknotrelofftdiskstsztcreate_versiont read_versiontdisk_numtdisk_dirtdircountt    dircount2tdirsizet    diroffset((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt _EndRecData64žs6  0 
 
 
 
 
 
 
c    Cs¾|jddƒ|jƒ}y|jt dƒWntk
rEd    SX|jƒ}t|ƒtkrÔ|dd!tkrÔ|ddkrÔtj    t
|ƒ}t |ƒ}|j dƒ|j |tƒt |t |ƒSt|d
tdƒ}|j|dƒ|jƒ}|jtƒ}|dkrº|||t!}t|ƒtkrId    St tj    t
|ƒƒ}|t}||t|t|!}|j |ƒ|j ||ƒt |||||ƒSd    S( sÔReturn 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.iiiiþÿÿÿttiiNi(RttelltsizeEndCentDirRtNoneRRtstringEndArchiveRRtstructEndArchivetlisttappendR:tmaxtrfindt_ECD_COMMENT_SIZE(    R)tfilesizeR,R+tmaxCommentStarttstarttrecDatat commentSizetcomment((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyR És>       
 cBsJeZdZdZddd„Zdd„Zd„Zd„Zd„Z    RS( s>Class with attributes describing each file in the ZIP archive.t orig_filenameRt    date_timet compress_typeRLtextrat create_systemR2textract_versiontreservedt    flag_bitstvolumet internal_attrt external_attrt header_offsettCRCt compress_sizet    file_sizet    _raw_timetNoNamei¼iicCs#||_|jtdƒƒ}|dkr:|d|!}ntjdkrptj|krp|jtjdƒ}n||_||_|ddkr¡tdƒ‚nt    |_
d|_ d|_ t jdkr×d|_n    d|_d|_d|_d|_d|_d|_d|_d|_dS(    Nit/i¼s+ZIP does not support timestamps before 1980R<twin32ii(RMtfindtchrtostseptreplaceRRNt
ValueErrorRRORLRPtsystplatformRQR2RRRSRTRURVRW(tselfRRNt    null_byte((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt__init__s.                                                      c CsÅ|j}|ddd>|dd>B|dB}|dd>|d    d>B|ddB}|jd
@rsd}}}n|j}|j}|j}|j}|dkr¾|tkp¸|tk}n|rùd }    |tj    |    dtj
|    ƒd    ||ƒ}n|tks|tkr_|s&t d ƒ‚nd }d }t d|j ƒ|_ t d|j ƒ|_n|jƒ\}
} tj    tt|j |j| |j|||||t|
ƒt|ƒƒ } | |
|S(s'Return the per-file header as a string.ii¼i    iiiii iis<HHQQs'Filesize would require ZIP64 extensionsIÿÿÿÿi-N(RNRTRYRZR[RPR?t ZIP64_LIMITRtpacktcalcsizeRRDRRR2t_encodeFilenameFlagststructFileHeadertstringFileHeaderRSROR( Rhtzip64tdttdosdatetdostimeRYRZR[RPtfmtRRTtheader((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt
FileHeaderIs:    &&                   # cCstt|jtƒr`y|jjdƒ|jfSWqptk
r\|jjdƒ|jdBfSXn|j|jfSdS(Ntasciisutf-8i(t
isinstanceRtunicodetencodeRTtUnicodeEncodeError(Rh((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRnps  !cCs(|jd@r|jjdƒS|jSdS(Nisutf-8(RTRtdecode(Rh((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt_decodeFilenameys cCsw|j}tj}x^|rr|d|d ƒ\}}|dkra|dkre|d|dd!ƒ}no|dkrŠ|d|dd    !ƒ}nJ|d
kr¯|d |dd !ƒ}n%|d krÄd}ntd|f‚d }|jdkr|||_|d7}n|jdkr,|||_|d7}n|jdkra|j}|||_|d7}qan||d}qWdS(Ns<HHiiis<QQQiis<QQiis<Qi isCorrupt extra field %slÿÿÿÿlÿÿ((lÿÿÿÿlÿÿ(RPRRt RuntimeErrorR[RZRX(RhRPRttptlntcountstidxtold((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt _decodeExtras4                              (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(i¼iiiiiN(
R    R
R t    __slots__RjR?RwRnR~R…(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRs2* '            t _ZipDecryptercBsDeZdZd„ZeƒZd„Zd„Zd„Zd„ZRS(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)
    cCs‚d}dgd}xhtdƒD]Z}|}xAtdƒD]3}|d@r^|d?d@|A}q9|d?d@}q9W|||<q W|S(sâGenerate 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().
        I ƒ¸íiiiiiÿÿÿ(trange(tpolyttabletitcrctj((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt_GenerateCRCTable±s 
cCs%|d?d@|j|t|ƒAd@AS(s(Compute the CRC32 primitive on one byte.iiÿÿÿiÿ(tcrctabletord(RhtchRŒ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt_crc32ÅscCs=d|_d|_d|_x|D]}|j|ƒq"WdS(NixV4i‰gE#ixV4(tkey0tkey1tkey2t _UpdateKeys(Rhtpwdtp((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRjÉs
             cCsx|j||jƒ|_|j|jd@d@|_|jddd@|_|jt|jd?d@ƒ|jƒ|_dS(NiÿIÿÿÿÿi„ii(R’R“R”RaR•(Rhtc((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyR–ÐscCsPt|ƒ}|jdB}|||dAd?d@A}t|ƒ}|j|ƒ|S(sDecrypt a single character.iiiiÿ(RR•RaR–(RhR™tk((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt__call__Ös     (    R    R
R RŽRR’RjR–R›(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyR‡¤s                     tstoretshrinktreducetimplodettokenizetdeflatet    deflate64tbzip2tlzmattersetlz77itwavpackiatppmdibt
ZipExtFilecBs„eZdZdd>ZdZejdƒZde    d„Z
dd„Z dd„Z d    „Z dd
„Zd „Zd „Zd „ZRS(sZFile-like object for reading an archive member.
       Is returned by ZipFile.open().
    iiis*^(?P<chunk>[^\r\n]+)|(?P<newline>\n|\r\n?)cCsf||_||_||_|j|_|j|_|j|_|jtkrct    j
dƒ|_ n\|jt kr¿t j|jƒ}|r¦td|j|fƒ‚q¿td|jfƒ‚nd|_d|_d|_d|k|_d|_|jdk    r|jd8_n||_|j|_t|dƒrY|j|_tdƒd    @|_n    d|_dS(
Niñÿÿÿscompression type %d (%s)scompression type %dR<itUi RYIÿÿÿÿ(t_fileobjt
_decryptert_close_fileobjROt_compress_typeRZt_compress_sizet_compress_leftRtzlibt decompressobjt _decompressorRtcompressor_namestgettNotImplementedErrort _unconsumedt _readbuffert_offsett
_universalR?tnewlinestmodeRtnameRRYt _expected_crctcrc32t _running_crc(RhtfileobjR¼tzipinfot    decryptert close_fileobjtdescr((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRjs4                                     iÿÿÿÿcCs£|j ra|dkra|jjd|jƒd}|dkra|j|j|!}||_|Sn|js}tjj||ƒSd}x|dks¤t|ƒ|krž|jdƒ}|dkrÃ|S|j    j
|ƒ}|j dƒ}|dk    rJ|j dkr g|_ n||j kr-|j j|ƒn|jt|ƒ7_|dS|j dƒ}|dkr|||t|ƒ }n|jt|ƒ7_||7}q†W|S(    srRead and return a line from the stream.
 
        If limit is specified, at most limit bytes will be read.
        is
iR<itnewlinetchunkN(RºR¸R`R¹tiotBufferedIOBasetreadlineRtpeektPATTERNtsearchtgroupR?R»RC(RhtlimitR‹tlinet    readaheadtmatchRÆRÇ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRÊ+s8         ! 
   cCs[|t|jƒ|jkrC|j|ƒ}|jt|ƒ8_n|j|j|jd!S(s6Returns buffered bytes without advancing the position.i(RR¸R¹R(RhtnRÇ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRË]scCstS(N(R (Rh((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pytreadablefscCsœd}|dkrd}nxztr—|dkrB|j|ƒ}n2|t|ƒkrp|j|t|ƒƒ}n|St|ƒdkrŠ|S||7}qWdS(sRead and return up to n bytes.
        If the argument is omitted, None, or negative, data is read and returned until EOF is reached..
        R<iÿÿÿÿiN(R?R tread1R(RhRÓtbufR,((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRis          cCs^|jdkrdSt||jƒd@|_|rZ|j|jkrZtd|jƒ‚ndS(NIÿÿÿÿsBad CRC-32 for file %r(R¾R?R¿RÀRR½(Rhtnewdatateof((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt _update_crc{s
c
Csg|dks|dkr$|j}nt|jƒ|j}|jdkrW||t|jƒkrW||t|jƒ}t||jƒ}t    ||jƒ}|j
j |ƒ}|jt|ƒ8_|r÷|j dk    r÷dj t|j |ƒƒ}n|jtkrE|j|d|jdkƒ|j|j||_d|_qW|j|7_nt|jƒdkr4||kr4|jtkr4|jj|jt|||jƒƒ}|jj|_t|jƒdkoß|jdk}|rþ||jjƒ7}n|j|d|ƒ|j|j||_d|_n|j|j|j|!}|jt|ƒ7_|S(s7Read up to n bytes with at most one read() system call.iR<RØN(R?tMAX_NRR¸R¹R°R·RDt MIN_READ_SIZEtminR«RR¬tjointmapR®RRÙRR³t
decompresstunconsumed_tailtflush(RhRÓtlen_readbuffertnbytesR,RØ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRՅs> ( !    $ cCs8z|jr|jjƒnWdtt|ƒjƒXdS(N(R­R«tclosetsuperR©(Rh((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRä¹s    iN(R    R
R RÚRÛtretcompileRÌR?RRjRÊRËRÔRRÙRÕRä(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyR©õs
 ' 2             
   4cBseZdZdZdeed„Zd„Zd„Z    d„Z
d„Z d„Z d„Z d    „Zd
„Zd „Zed „ƒZejd „ƒZdd„Zddd„Zddd„Zdddd„Zd„Zd„Zddd„Zdd„Zd„Zd„ZRS(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.
 
    trcCs\|dkrtdƒ‚n|tkr*n*|tkrKtsTtd‚qTn    td‚||_t|_d|_i|_g|_    ||_
|j dd    ƒd|_ }d|_d    |_t|tƒrXd|_||_id
d6d d6d d6}yt|||ƒ|_Wqtk
rT|dkrNd}}t|||ƒ|_qU‚qXn'd |_||_t|ddƒ|_y¤|dkr›|jƒn‡|dkr³t|_no|dkry$|jƒ|jj|jdƒWq"tk
r|jjddƒt|_q"Xn tdƒ‚Wn2|j}d|_|jsQ|jƒn‚nXdS(s>Open the ZIP file with mode read "r", write "w" or append "a".Rètwtas(ZipFile() requires mode "r", "w", or "a"s.Compression requires the (missing) zlib modules(That compression method is not supporteditbR<Rtwbsr+biR½isMode must be "r", "w" or "a"N(RèRéRê(RRRR±t _allowZip64Rt
_didModifytdebugt
NameToInfotfilelistt compressionRdR¼R?R—t_commentRyt
basestringt _filePassedRRRRtgetattrt_RealGetContentsR Rt    start_dirRRä(RhtfileR¼Ròt
allowZip64tkeytmodeDictR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRjÒsf                                                  
 
             
              cCs|S(N((Rh((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt    __enter__scCs|jƒdS(N(Rä(Rhttypetvaluet    traceback((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt__exit__sc CsH|j}yt|ƒ}Wntk
r8tdƒ‚nX|sKtd‚n|jdkrb|GHn|t}|t}|t|_|t    ||}|t
t kr¶|t t 8}n|jdkrã||}dG|G|G|GHn|||_|j|jdƒ|j|ƒ}tj|ƒ}d}x||krC|jtƒ}    t|    ƒtkrftdƒ‚ntjt|    ƒ}    |    ttkr—tdƒ‚n|jdkr®|    GHn|j|    tƒ}
t|
ƒ} |j|    tƒ| _|j|    tƒ| _|    t | _!|    dd!\ | _"| _#| _$| _%| _&| _'} } | _(| _)| _*|    d    d
!\| _+| _,| _-| | _.| d ?d | d ?d    @| d@| d?| d ?d@| d@df| _/| j0ƒ| j!|| _!| j1ƒ| _2|j3j4| ƒ| |j5| j2<|t|    t|    t|    t}|jdkr*dG|GHq*q*WdS(s/Read in the table of contents for the ZIP file.sFile is not a zip fileiisgiven, inferred, offsetisTruncated central directorys&Bad magic number for central directoryi iii    i¼iii i?ttotalN(6RR RRRïR'R(t _ECD_COMMENTRót _ECD_LOCATIONR"R!RRRøRRt    cStringIOtStringIOtsizeCentralDirRRRtstructCentralDirt _CD_SIGNATUREtstringCentralDirt_CD_FILENAME_LENGTHRt_CD_EXTRA_FIELD_LENGTHRPt_CD_COMMENT_LENGTHRLt_CD_LOCAL_HEADER_OFFSETRXR2RQRRRSRTRORYRZR[RURVRWR\RNR…R~RRñRCRð(RhRR+tsize_cdt    offset_cdtconcattinferredR,RtcentdirRtxtttd((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyR÷sd      
 
 
   I    &
"cCs.g}x!|jD]}|j|jƒqW|S(s+Return a list of file names in the archive.(RñRCR(RhtlR,((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pytnamelistdscCs|jS(sJReturn a list of class ZipInfo instances for files in the
        archive.(Rñ(Rh((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pytinfolistkscCsJdd    GHx:|jD]/}d|jd }d|j||jfGHqWdS(
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(RñRNRR[(Rhtzinfotdate((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pytprintdirps    cCsnd}xa|jD]V}y8|j|jdƒ}x|j|ƒrFq4WWdQXWqtk
re|jSXqWdS(s%Read all the files and check the CRC.iiRèNi(RñRRRR(Rht
chunk_sizeRtf((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyttestzipws cCs5|jj|ƒ}|dkr1td|ƒ‚n|S(s,Return the instance of ZipInfo given 'name'.s(There is no item named %r in the archiveN(RðRµR?tKeyError(RhR½tinfo((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pytgetinfo„s
 cCs ||_dS(s)Set default password for encrypted files.N(R—(RhR—((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt setpasswordscCs|jS(s.The comment text associated with the ZIP file.(Ró(Rh((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRL‘scCsJt|ƒtkr4|jr'dtGHn|t }n||_t|_dS(Ns3Archive comment is too long; truncating to %d bytes(RtZIP_MAX_COMMENTRïRóR Rî(RhRL((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRL–s             cCs|j|d|ƒjƒS(s)Return file bytes (as a string) for name.Rè(RR(RhR½R—((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyR¡scCsd|dkrtd‚n|js-td‚n|jrH|j}t}nt|jdƒ}t}yàt|tƒr{|}n|j    |ƒ}|j
|j dƒ|j t ƒ}t|ƒt krÍtdƒ‚ntjt|ƒ}|ttkrþtd    ƒ‚n|j |tƒ}|tr/|j |tƒn||jkrWtd
|j|f‚n|jd @}    d}
|    r&|s‚|j}n|s˜td |‚nt|ƒ}
|j d ƒ} t|
| dd !ƒ} |jd@rê|jd?d@} n|jd?d@} t| dƒ| kr&td|ƒ‚q&nt ||||
d|ƒSWn|rY|j!ƒn‚nXdS(s#Return file-like object for 'name'.RèRªtrUs&open() requires mode "r", "U", or "rU"s3Attempt to read ZIP archive that was already closedRisTruncated file headers Bad magic number for file headers3File name in directory "%s" and header "%s" differ.is6File %s is encrypted, password required for extractioni iiÿii sBad password for fileRÄN(RèRªsrU("RRRõRRRR RyRR#RRXRtsizeFileHeaderRRRRRot _FH_SIGNATURERpt_FH_FILENAME_LENGTHt_FH_EXTRA_FIELD_LENGTHRMRTR?R—R‡RÞR\RYRR©Rä(RhR½R¼R—tzef_filet should_closeRtfheadertfnamet is_encryptedtzdtbytestht
check_byte((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyR¥sd                          
 
    cCsOt|tƒs!|j|ƒ}n|dkr<tjƒ}n|j|||ƒ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(RyRR#R?Rbtgetcwdt_extract_member(RhtmembertpathR—((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pytextractôs
 cCsC|dkr|jƒ}nx!|D]}|j|||ƒq"WdS(sõ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().
        N(R?RR8(RhR7tmembersR—RÂ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt
extractalls  c
Cs|jjdtjjƒ}tjjrH|jtjjtjjƒ}ntjj|ƒd}tjjjd„|jtjjƒDƒƒ}tjjdkr2d}t    |t
ƒrÆd„|Dƒ}nt j |dt |ƒƒ}|j|ƒ}d„|jtjjƒDƒ}tjjjd    „|Dƒƒ}ntjj||ƒ}tjj|ƒ}tjj|ƒ}|r”tjj|ƒ r”tj|ƒn|jd
dkrÍtjj|ƒsÉtj|ƒn|S|j|d |ƒ/}t|d ƒ}    tj||    ƒWd QXWd QX|S(sbExtract the ZipInfo object 'member' to a physical
           file on the path targetpath.
        R^icss6|],}|dtjjtjjfkr|VqdS(R<N(RbR7tcurdirtpardir(t.0R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pys    <genexpr>ss\s:<>|"?*cSs%i|]}tdƒt|ƒ“qS(t_(R(R=R™((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pys
<dictcomp>!s    R>css|]}|jdƒVqdS(t.N(trstrip(R=R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pys    <genexpr>&scss|]}|r|VqdS(N((R=R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pys    <genexpr>'siÿÿÿÿR—RìN(RRdRbR7Rctaltsept
splitdriveRÝtsplitRyRztstringt    maketransRt    translatetnormpathtdirnametexiststmakedirstisdirtmkdirRRùtshutilt copyfileobj(
RhR6t
targetpathR—tarcnametillegalRŠt    upperdirstsourcettarget((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyR5s4 !."cCsø|j|jkr-|jr-dG|jGHq-n|jd krHtd‚n|js]td‚n|jtkrt rtd‚n|jt    tfkr td‚n|j
t krÊ|j sÊt dƒ‚qÊn|jt krô|j sôt d    ƒ‚qônd
S( s6Check for errors before writing a file to the archive.sDuplicate name:RéRês 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(RéRê(RRðRïR¼RRRORR±RR[RkRíRRX(RhR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt _writecheck<s(                             c    Csã|jstdƒ‚ntj|ƒ}tj|jƒ}tj|jƒ}|dd!}|dkrm|}ntj
j tj
j |ƒdƒ}x*|dtj tjfkr»|d}q’W|rÏ|d7}nt||ƒ}|dd@d>|_|dkr|j|_n    ||_|j|_d|_|jjƒ|_|j|ƒt|_|r²d|_d|_d|_|jj|ƒ||j|j <|jj!|j"t#ƒƒdSt$|d    ƒ    }    d|_}
d|_} |j%o÷|jd
t&k} |jj!|j"| ƒƒ|jt'kr@t(j)t(j*t(j+d ƒ} nd} d}xw|    j,dƒ}|shPn|t-|ƒ}t.||
ƒd@}
| r³| j/|ƒ}| t-|ƒ} n|jj!|ƒqOWdQX| r
| j0ƒ}| t-|ƒ} |jj!|ƒ| |_n    ||_|
|_||_| rn|j%rn|t&krPtdƒ‚n| t&krntdƒ‚qnn|jjƒ}|jj1|jdƒ|jj!|j"| ƒƒ|jj1|dƒ|jj|ƒ||j|j <dS(sLPut the bytes from filename into the archive under the name
        arcname.s7Attempt to write to ZIP archive that was already closediiiR^iÿÿlNRgÍÌÌÌÌÌð?iñÿÿÿiiIÿÿÿÿs*File size has increased during compressings-Compressed size larger than uncompressed sizei (2RRRbtstattS_ISDIRtst_modettimet    localtimetst_mtimeR?R7RGRBRcRARRWRòROtst_sizeR[RTR=RXRUR RîRZRYRñRCRðRtwriteRwRRRíRkRR±t compressobjtZ_DEFAULT_COMPRESSIONtDEFLATEDRRR¿tcompressRáR(RhRRPROtstRKtmtimeRNRRRYRZRqtcmprR[RÖtposition((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyR]Ss           "                                                   cCst|tƒsOtd|dtjtjƒƒd ƒ}|j|_d|_n|}|jsmtdƒ‚n|d k    r…||_nt
|ƒ|_ |jj ƒ|_ |j|ƒt|_t|ƒd@|_|jtkr$tjtjtjdƒ}|j|ƒ|jƒ}t
|ƒ|_n |j |_|j tkpK|jtk}|rm|j rmtd    ƒ‚n|jj|j|ƒƒ|jj|ƒ|j d
@rã|r¯d nd }|jjt!j"||j|j|j ƒƒn|jjƒ|j#j$|ƒ||j%|j&<d S(s¬Write 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.RRNii€is7Attempt to write to ZIP archive that was already closedIÿÿÿÿiñÿÿÿs'Filesize would require ZIP64 extensionsis<LQQs<LLLNi€('RyRRYRZRòRORWRRR?RR[R=RXRUR RîR¿RYRR±R^R_R`RaRáRZRkRíRR]RwRTRRlRñRCRðR(Rhtzinfo_or_arcnameR1RORtcoRqRu((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pytwritestr¬sF                   cCs|jƒdS(s2Call the "close()" method in case the user forgot.N(Rä(Rh((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt__del__ÛscCs’|jdkrdSzO|jdkra|jrad}|jjƒ}x×|jD]Ì}|d}|j}|ddd>|dd>B|d    B}|d
d >|d d>B|dd    B}g}|jtksÖ|j    tkr|j
|jƒ|j
|j    ƒd }d }    n|j}|j    }    |j tkr?|j
|j ƒd}
n    |j }
|j } |r²t jddt|ƒddt|ƒ|Œ| } td|jƒ} td|jƒ} n|j} |j} y…|jƒ\}}t jtt| |j| |j||j|||j|    |t|ƒt| ƒt|jƒd|j|j|
ƒ}WnŠtk
rÕtjtt| |j| |j|j |j|||j|    |t|j!ƒt| ƒt|jƒd|j|j|
fIJ‚nX|jj"|ƒ|jj"|ƒ|jj"| ƒ|jj"|jƒqMW|jjƒ}|}||}|}|t#ksf|tksf|tkrþt jt$t%ddddd||||ƒ }|jj"|ƒt jt&t'd|dƒ}|jj"|ƒt(|dƒ}t(|d ƒ}t(|d ƒ}nt jt)t*dd||||t|j+ƒƒ    }|jj"|ƒ|jj"|j+ƒ|jj,ƒnWd|j}d|_|j-s|j.ƒnXdS(sJClose the file, and for mode "w" and "a" write the ending
        records.NRéRêiii¼i    iiii iIÿÿÿÿlÿÿs<HHtQii-i,iÿÿ(RéRê(/RR?R¼RîR=RñRNR[RkRZRCRXRPRRlRRDRRR2RnRR
RQRSRORYRLRVRWtDeprecationWarningRftstderrRTRR]tZIP_FILECOUNT_LIMITR R!RRRÜRAR@RóRáRõRä(Rhtcounttpos1RRrRsRtRPR[RZRXt
extra_dataRRR2RRTRtpos2t centDirCountt centDirSizet centDirOffsett zip64endrect zip64locrecR+R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRäßs¬
    &&                                       
 !    
                  N(R    R
R R?RRRRjRýRR÷RRRR R#R$tpropertyRLtsetterRRR8R:R5RUR]RhRiRä(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRÁs0 G            E                             O    .    Y /    cBs#eZdZdd„Zd„ZRS(sDClass to create ZIP archives with Python library files and packages.R<c Csàtjj|ƒ\}}tjj|ƒr|tjj|dƒ}tjj|ƒrÊ|rjd||f}n|}|jrdG|GdG|GHn|j|dd!|ƒ\}}|jrÁdG|GHn|j||ƒtj    |ƒ}|j
dƒx‰|D]Ï}    tjj||    ƒ}
tjj |    ƒ\} } tjj|
ƒrptjjtjj|
dƒƒrÃ|j |
|ƒqÃqô| dkrô|j|
dd!|ƒ\}}|jr°dG|GHn|j||ƒqôqôWqÜ|jrßd    G|GHnxútj    |ƒD]†}    tjj||    ƒ}
tjj |    ƒ\} } | dkrï|j|
dd!|ƒ\}}|jrbdG|GHn|j||ƒqïqïWn`|ddkr˜t d
‚n|j|dd!|ƒ\}}|jrÌd G|GHn|j||ƒ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 intasiiýÿÿÿtAddings.pysAdding files from directorys.Files added with writepy() must end with ".py"s Adding fileN(RbR7RCRKRÝtisfileRït _get_codenameR]tlistdirtremovetsplitexttwritepyR( RhtpathnametbasenametdirR½tinitnameR.RPtdirlistRR7troottext((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyR€LsZ            !                          c
Cs8|d}|d}|d}tjj|ƒr]tj|ƒjtj|ƒjkr]|}n¢tjj|ƒ s”tj|ƒjtj|ƒjkrùddl}|jrµdG|GHny|j||dt    ƒWn|j
k
rï}|j GHnX|}n|}tjj |ƒd}    |r.d||    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.pyoiÿÿÿÿNt    Compilingis%s/%s( RbR7R{RVR[t
py_compileRïRçR?R tPyCompileErrortmsgRC(
RhRR‚tfile_pytfile_pyctfile_pyoR.R‰terrt archivename((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyR|s*
 
 
$    $           (R    R
R R€R|(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyRIs Ac súddl}|jdƒ}|dkr7tjd}n| sN|ddkrc|GHtjdƒn|ddkrÃt|ƒd    krš|GHtjdƒnt|dd
ƒ}|jƒWdQXn3|ddkrAt|ƒd    krú|GHtjdƒnt|dd
ƒ}|j    ƒ}WdQX|r9d j
|ƒGHnd GHnµ|ddkrZt|ƒd krx|GHtjdƒnt|dd
ƒÊ}|d    }x¶|j ƒD]¨}|j dƒrÖt jj||d    ƒ}nt jj||ƒ}t jj|ƒ}t jj|ƒst j|ƒnt|dƒ}    |    j|j|ƒƒWdQXq¥WWdQXnœ|ddkröt|ƒd kr‘|GHtjdƒn‡fd†‰t|dddtƒ8}x.|d    D]"}
ˆ||
t jj|
ƒƒqÇWWdQXndS(NiÿÿÿÿsE        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-tiRès.The following enclosed file is corrupted: {!r}s Done testingis./Rìcs‰tjj|ƒr(|j||tƒn]tjj|ƒr…xHtj|ƒD]4}ˆ|tjj||ƒtjj||ƒƒqJWndS(N(RbR7R{R]RRKR}RÝ(tzfR7tzippathtnm(taddToZip(sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyR”ås RéRú(s-ls-cs-es-t(ttextwraptdedentR?RftargvtexitRRRR tformatRt
startswithRbR7RÝRHRIRJRR]RR R‚( targsR•tUSAGER‘tbadfiletoutR7ttgtttgtdirRtsrc((R”sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pytmain¬s\      
)    t__main__(kR RRbRYRfRMtbinasciiRRVRÈRæRDR±R¿t ImportErrorR?t__all__t    ExceptionRRRRkRmR%RRRAR@RmR>R"R#R$R%R&R'R(RFRRRR
RR    t_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_SIZER R R t_CD_DISK_NUMBER_STARTt_CD_INTERNAL_FILE_ATTRIBUTESt_CD_EXTERNAL_FILE_ATTRIBUTESRRoRpR'R(t_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_SIZER)R*RRRR R!Rt_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_CENTDIRRRR:R tobjectRR‡R´RÉR©RRR¢R    (((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/zipfile.pyt<module>sî<$       
             +    =ž<
ÌÿÿŠc F