Home
last modified time | relevance | path

Searched refs:zipfile (Results 1 – 25 of 173) sorted by relevance

1234567

/external/python/cpython2/Lib/test/
Dtest_zipfile.py12 import zipfile
55 with zipfile.ZipFile(f, "w", compression) as zipfp:
64 with zipfile.ZipFile(f, "r", compression) as zipfp:
120 self.zip_test(f, zipfile.ZIP_STORED)
126 with zipfile.ZipFile(f, "r", compression) as zipfp:
148 self.zip_open_test(f, zipfile.ZIP_STORED)
152 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
158 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
174 with zipfile.ZipFile(f, "r", compression) as zipfp:
187 self.zip_random_open_test(f, zipfile.ZIP_STORED)
[all …]
Dtest_zipfile64.py20 import zipfile, os, unittest
48 zipfp = zipfile.ZipFile(f, "w", compression, allowZip64=True)
67 zipfp = zipfile.ZipFile(f, "r", compression)
83 self.zipTest(f, zipfile.ZIP_STORED)
85 self.zipTest(TESTFN2, zipfile.ZIP_STORED)
92 self.zipTest(f, zipfile.ZIP_DEFLATED)
94 self.zipTest(TESTFN2, zipfile.ZIP_DEFLATED)
106 zipf = zipfile.ZipFile(TESTFN, mode="w", allowZip64=True)
114 zipf2 = zipfile.ZipFile(TESTFN, mode="r")
121 zipf = zipfile.ZipFile(TESTFN, mode="w", allowZip64=False)
[all …]
/external/python/cpython3/Lib/test/
Dtest_zipfile.py9 import zipfile
59 with zipfile.ZipFile(f, "w", **kwargs) as zipfp:
71 with zipfile.ZipFile(f, "r", compression) as zipfp:
129 with zipfile.ZipFile(f, "r", compression) as zipfp:
156 with zipfile.ZipFile(path, "r", self.compression) as zipfp:
163 with zipfile.ZipFile(f, "r", compression) as zipfp:
182 with zipfile.ZipFile(f, "r") as zipfp, \
201 with zipfile.ZipFile(f, "r") as zipfp, \
221 with zipfile.ZipFile(f, "r") as zipfp, \
246 with zipfile.ZipFile(f, "r") as zipfp:
[all …]
Dtest_zipfile64.py14 import zipfile, os, unittest
40 zipfp = zipfile.ZipFile(f, "w", compression)
59 zipfp = zipfile.ZipFile(f, "r", compression)
75 self.zipTest(f, zipfile.ZIP_STORED)
77 self.zipTest(TESTFN2, zipfile.ZIP_STORED)
84 self.zipTest(f, zipfile.ZIP_DEFLATED)
86 self.zipTest(TESTFN2, zipfile.ZIP_DEFLATED)
98 zipf = zipfile.ZipFile(TESTFN, mode="w", allowZip64=True)
106 zipf2 = zipfile.ZipFile(TESTFN, mode="r")
114 zipf = zipfile.ZipFile(TESTFN, mode="w", allowZip64=False)
[all …]
Dtest_zipapp.py10 import zipfile
53 with zipfile.ZipFile(target, 'r') as z:
70 with zipfile.ZipFile(target, 'r') as z:
90 with zipfile.ZipFile(target, 'r') as z:
114 with zipfile.ZipFile(target, 'r') as z:
117 zipfile.ZIP_DEFLATED)
144 with zipfile.ZipFile(str(target), 'r') as z:
162 with zipfile.ZipFile(str(target), 'r') as z:
298 with zipfile.ZipFile(new_target, 'r') as z:
/external/skqp/infra/bots/
Dzip_utils.py16 import zipfile
32 with zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED, True) as z:
37 zi = zipfile.ZipInfo(filepath)
51 zi.compress_type = zipfile.ZIP_DEFLATED
64 with zipfile.ZipFile(zip_file, 'r', zipfile.ZIP_DEFLATED, True) as z:
/external/skia/infra/bots/
Dzip_utils.py16 import zipfile
32 with zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED, True) as z:
37 zi = zipfile.ZipInfo(filepath)
51 zi.compress_type = zipfile.ZIP_DEFLATED
64 with zipfile.ZipFile(zip_file, 'r', zipfile.ZIP_DEFLATED, True) as z:
/external/chromium-trace/catapult/systrace/profile_chrome/
Dutil.py8 import zipfile
12 with zipfile.ZipFile(output, 'w', zipfile.ZIP_DEFLATED) as z:
23 with zipfile.ZipFile(output, 'w', zipfile.ZIP_DEFLATED) as z:
/external/chromium-trace/catapult/third_party/zipfile/
DREADME.chromium1 Name: Python zipfile module
2 Short Name: zipfile
3 URL: https://github.com/python/cpython/blob/master/Lib/zipfile.py
10 This is a copy of the zipfile module from Python 2.7.13. This snapshot was
16 Renamed zipfile.py to zipfile_2_7_13.py to avoid conflicting with system copy.
/external/python/cpython3/Lib/distutils/
Darchive_util.py11 import zipfile
13 zipfile = None variable
141 if zipfile is None:
163 zip = zipfile.ZipFile(zip_filename, "w",
164 compression=zipfile.ZIP_DEFLATED)
166 zip = zipfile.ZipFile(zip_filename, "w",
167 compression=zipfile.ZIP_STORED)
/external/chromium-trace/catapult/devil/devil/utils/
Dzip_utils.py10 import zipfile
44 zip_file.write(dir_path, dir_arc_path, zipfile.ZIP_STORED)
49 zip_file.write(file_path, file_arc_path, zipfile.ZIP_DEFLATED)
52 zip_file.write(path, arc_path, zipfile.ZIP_DEFLATED)
56 with zipfile.ZipFile(zip_path, 'w') as zip_file:
Dzip_utils_test.py7 import zipfile
33 self.assertTrue(zipfile.is_zipfile(zip_path))
35 actual = zipfile.ZipFile(zip_path)
/external/python/setuptools/pkg_resources/tests/
Dtest_pkg_resources.py7 import zipfile
56 zip_egg = zipfile.ZipFile(egg, 'w')
57 zip_info = zipfile.ZipInfo()
61 zip_info = zipfile.ZipInfo()
65 zip_info = zipfile.ZipInfo()
69 zip_info = zipfile.ZipInfo()
/external/python/cpython2/Lib/distutils/
Darchive_util.py131 import zipfile
133 zipfile = None
140 if zipfile is None:
162 zip = zipfile.ZipFile(zip_filename, "w",
163 compression=zipfile.ZIP_DEFLATED)
/external/python/cpython2/Doc/library/
Dzipfile.rst1 :mod:`zipfile` --- Work with ZIP archives
4 .. module:: zipfile
11 **Source code:** :source:`Lib/zipfile.py`
31 The error raised for bad ZIP files (old name: ``zipfile.error``).
44 :ref:`zipfile-objects` for constructor details.
56 methods of :class:`ZipFile` objects. Most users of the :mod:`zipfile` module
118 ``True`` zipfile will create ZIP files that use the ZIP64 extensions when
119 the zipfile is larger than 2 GB. If it is false (the default) :mod:`zipfile`
166 single: universal newlines; zipfile.ZipFile.open method
244 The zipfile module attempts to prevent that. See :meth:`extract` note.
[all …]
/external/libchrome/build/android/gyp/util/
Dbuild_utils.py20 import zipfile
259 if not zipfile.is_zipfile(zip_path):
263 with zipfile.ZipFile(zip_path) as z:
307 zipinfo = zipfile.ZipInfo(filename=zip_path, date_time=HERMETIC_TIMESTAMP)
329 compress_type = zipfile.ZIP_DEFLATED if compress else zipfile.ZIP_STORED
351 with zipfile.ZipFile(output, 'w') as outfile:
387 assert isinstance(output, zipfile.ZipFile)
390 out_zip = zipfile.ZipFile(output, 'w')
394 with zipfile.ZipFile(in_file, 'r') as in_zip:
407 compress=info.compress_type != zipfile.ZIP_STORED)
/external/tensorflow/tensorflow/go/
Dexample_inception_inference_test.go226 zipfile = filepath.Join(dir, "inception5h.zip")
235 if err := download(URL, zipfile); err != nil {
238 if err := unzip(dir, zipfile); err != nil {
241 os.Remove(zipfile)
269 func unzip(dir, zipfile string) error {
270 r, err := zip.OpenReader(zipfile)
/external/tensorflow/tensorflow/tools/ci_build/
Dcopy_binary.py33 import zipfile
60 zip_ref = zipfile.ZipFile(os.path.join(directory, origin_binary), "r")
78 zout = zipfile.ZipFile(directory + new_binary, "w", zipfile.ZIP_DEFLATED)
/external/libchrome/mojo/public/tools/gn/
Dzip.py16 import zipfile
31 with zipfile.ZipFile(output, 'w', zipfile.ZIP_DEFLATED) as outfile:
42 with zipfile.ZipFile(zf_name, 'r') as zf:
/external/python/setuptools/setuptools/tests/
Dtest_upload_docs.py2 import zipfile
54 assert zipfile.is_zipfile(tmp_file)
56 with contextlib.closing(zipfile.ZipFile(tmp_file)) as zip_file:
/external/python/cpython3/Doc/library/
Dzipfile.rst1 :mod:`zipfile` --- Work with ZIP archives
4 .. module:: zipfile
10 **Source code:** :source:`Lib/zipfile.py`
52 :ref:`zipfile-objects` for constructor details.
65 methods of :class:`ZipFile` objects. Most users of the :mod:`zipfile` module
159 If *allowZip64* is ``True`` (the default) zipfile will create ZIP files that
160 use the ZIP64 extensions when the zipfile is larger than 4 GiB. If it is
161 ``false`` :mod:`zipfile` will raise an exception when the ZIP file would
675 .. program:: zipfile
680 The :mod:`zipfile` module provides a simple command-line interface to interact
[all …]
/external/python/cpython3/Lib/distutils/tests/
Dtest_archive_util.py26 import zipfile
247 with zipfile.ZipFile(tarball) as zf:
252 patch(self, archive_util.zipfile, 'zlib', None) # force zlib ImportError
255 zipfile_class = zipfile.ZipFile
257 if kw.get('compression', None) == zipfile.ZIP_STORED:
261 patch(self, archive_util.zipfile, 'ZipFile', fake_zipfile)
271 [((tarball, "w"), {'compression': zipfile.ZIP_STORED})])
273 with zipfile.ZipFile(tarball) as zf:
/external/python/cpython3/Lib/
Dzipapp.py7 import zipfile
136 compression = (zipfile.ZIP_DEFLATED if compressed else
137 zipfile.ZIP_STORED)
138 with zipfile.ZipFile(fd, 'w', compression=compression) as z:
/external/scapy/.appveyor/
DInstallWindump.ps112 param([string]$zipfile, [string]$outpath) in Unzip() variable
14 [System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath) in Unzip() variable
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Ddependency_manager_util.py10 import zipfile_2_7_13 as zipfile namespace
86 if not (archive_path and zipfile.is_zipfile(archive_path)):
101 with zipfile.ZipFile(archive_path, 'r') as archive:

1234567