Searched defs:zipfile (Results 1 - 25 of 38) sorted by relevance

12

/external/libmojo/third_party/catapult/devil/devil/utils/
H A Dzip_utils.py7 import zipfile namespace
13 zip_file: An open instance of zipfile.ZipFile.
22 zip_file.write(dir_path, dir_arc_path, zipfile.ZIP_STORED)
27 zip_file.write(file_path, file_arc_path, zipfile.ZIP_DEFLATED)
30 zip_file.write(path, arc_path, zipfile.ZIP_DEFLATED)
/external/chromium-trace/catapult/devil/devil/utils/
H A Dzip_utils.py7 import zipfile namespace
15 zip_file: An open instance of zipfile.ZipFile.
24 zip_file.write(dir_path, dir_arc_path, zipfile.ZIP_STORED)
29 zip_file.write(file_path, file_arc_path, zipfile.ZIP_DEFLATED)
32 zip_file.write(path, arc_path, zipfile.ZIP_DEFLATED)
/external/libmojo/mojo/public/tools/gn/
H A Dzip.py16 import zipfile namespace
25 with zipfile.ZipFile(output, 'w', zipfile.ZIP_DEFLATED) as outfile:
36 with zipfile.ZipFile(zf_name, 'r') as zf:
/external/skia/infra/bots/
H A Dzip_utils.py14 import zipfile namespace
30 with zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED, True) as z:
35 zi = zipfile.ZipInfo(filepath)
39 zi.compress_type = zipfile.ZIP_DEFLATED
52 with zipfile.ZipFile(zip_file, 'r', zipfile.ZIP_DEFLATED, True) as z:
/external/chromium-trace/catapult/systrace/profile_chrome/
H A Dutil.py8 import zipfile namespace
12 with zipfile.ZipFile(output, 'w', zipfile.ZIP_DEFLATED) as z:
23 with zipfile.ZipFile(output, 'w', zipfile.ZIP_DEFLATED) as z:
H A Dprofiler_unittest.py7 import zipfile namespace
55 self.assertTrue(zipfile.is_zipfile(result))
/external/boringssl/src/util/bot/
H A Dextract.py25 import zipfile namespace
59 with zipfile.ZipFile(path, 'r') as zip_file:
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
H A Ddependency_manager_util.py9 import zipfile_2_7_13 as zipfile namespace
57 archive: A zipfile.ZipFile object opened for reading.
82 ValueError: If |archive_path| is not a zipfile.
85 if not (archive_path and zipfile.is_zipfile(archive_path)):
91 with zipfile.ZipFile(archive_path, 'r') as archive:
H A Ddependency_manager_util_unittest.py12 import zipfile namespace
111 self.assertTrue(zipfile.is_zipfile(archive_path))
156 self.assertTrue(zipfile.is_zipfile(archive_path))
170 'dependency_manager.dependency_manager_util.zipfile.ZipFile.extractall' # pylint: disable=line-too-long
180 with zipfile.ZipFile(self.archive_path) as archive:
188 with zipfile.ZipFile(self.archive_path, 'w') as archive:
/external/python/cpython2/Lib/distutils/tests/
H A Dtest_bdist_dumb.py5 import zipfile namespace
83 fp = zipfile.ZipFile(os.path.join('dist', base))
H A Dtest_archive_util.py27 import zipfile namespace
H A Dtest_sdist.py6 import zipfile namespace
12 # the tests that use zipfile may fail
126 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
242 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
/external/v8/gypfiles/
H A Ddownload_gold_plugin.py16 import zipfile namespace
/external/python/cpython2/Lib/distutils/
H A Darchive_util.py125 "zipfile" Python module (if available) or the InfoZIP "zip" utility
131 import zipfile namespace
133 zipfile = None
138 # If zipfile module is not available, try spawning an external
140 if zipfile is None:
154 "could neither import the 'zipfile' module nor "
162 zip = zipfile.ZipFile(zip_filename, "w",
163 compression=zipfile.ZIP_DEFLATED)
/external/python/cpython2/Lib/test/
H A Dscript_helper.py14 import zipfile namespace
17 # fail, which, in turn, means that zipfile cannot be imported
125 zip_file = zipfile.ZipFile(zip_name, 'w')
131 # zip_file = zipfile.ZipFile(zip_name, 'r')
157 zip_file = zipfile.ZipFile(zip_name, 'w')
166 # zip_file = zipfile.ZipFile(zip_name, 'r')
H A Dtest_pkgutil.py10 import zipfile namespace
62 z = zipfile.ZipFile(zip_file, 'w')
H A Dtest_zipfile64.py1 # Tests of the full ZIP64 functionality of zipfile
20 import zipfile, os, unittest namespace
38 line_gen = ("Test of zipfile line %d." % i for i in xrange(1000000))
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
[all...]
H A Dtest_zipimport_support.py10 import zipfile namespace
120 z = zipfile.ZipFile(zip_name, 'a')
125 zip_file = zipfile.ZipFile(zip_name, 'r')
/external/autotest/client/site_tests/network_CastTDLS/
H A Dnetwork_CastTDLS.py5 import json, logging, os, re, tempfile, time, urllib2, zipfile namespace
107 zip_ref = zipfile.ZipFile(zip_file, 'r')
/external/autotest/server/cros/ap_configurators/
H A Dpyauto_utils.py16 import zipfile namespace
105 zf = zipfile.ZipFile(filename)
/external/autotest/server/site_tests/cheets_CTS/
H A Dgenerate_controlfiles.py15 import zipfile namespace
303 with zipfile.ZipFile(filename) as zf:
/external/boringssl/src/util/bot/go/
H A Dbootstrap.py27 import zipfile namespace
131 with zipfile.ZipFile(pkg_path, 'r') as f:
/external/libmojo/build/android/gyp/util/
H A Dbuild_utils.py18 import zipfile namespace
228 if not zipfile.is_zipfile(zip_path):
231 with zipfile.ZipFile(zip_path) as z:
270 zipinfo = zipfile.ZipInfo(filename=zip_path, date_time=_HERMETIC_TIMESTAMP)
283 # zipfile will deflate even when it makes the file bigger. To avoid
292 compress_type = zipfile.ZIP_DEFLATED if compress else zipfile.ZIP_STORED
312 with zipfile.ZipFile(output, 'w') as outfile:
335 with zipfile.ZipFile(output, 'w') as out_zip:
337 with zipfile
[all...]
H A Dmd5_check.py11 import zipfile namespace
404 with zipfile.ZipFile(path) as zip_file:
/external/python/cpython2/Lib/
H A Dshutil.py414 "could neither import the 'zipfile' module nor "
421 "zipfile" Python module (if available) or the InfoZIP "zip" utility
435 # If zipfile module is not available, try spawning an external 'zip'
438 import zipfile namespace
440 zipfile = None
442 if zipfile is None:
450 with zipfile.ZipFile(zip_filename, "w",
451 compression=zipfile.ZIP_DEFLATED) as zf:

Completed in 815 milliseconds

12