Lines Matching defs:zipfile
22 import zipfile
314 if not zipfile.is_zipfile(zip_path):
318 with zipfile.ZipFile(zip_path) as z:
365 zipinfo = zipfile.ZipInfo(filename=zip_path, date_time=HERMETIC_TIMESTAMP)
386 # zipfile will deflate even when it makes the file bigger. To avoid
395 compress_type = zipfile.ZIP_DEFLATED if compress else zipfile.ZIP_STORED
413 By default, items will be |zipfile.ZIP_STORED|.
424 with zipfile.ZipFile(output, 'w') as outfile:
495 assert isinstance(output, zipfile.ZipFile)
498 out_zip = zipfile.ZipFile(output, 'w')
502 with zipfile.ZipFile(in_file, 'r') as in_zip:
520 compress=info.compress_type != zipfile.ZIP_STORED)