Lines Matching defs:zipfile
32 import zipfile
139 if isinstance(input_file, zipfile.ZipFile):
557 Returns (tempdir, zipobj) where zipobj is a zipfile.ZipFile (of the
582 return tmp, zipfile.ZipFile(filename, "r")
999 # Python 2.7's zipfile implementation wrongly thinks that zip64 is required
1001 # limit. Note that `zipfile.writestr()` will not work for strings larger than
1004 # `zipfile.write()` must be used directly to work around this.
1007 saved_zip64_limit = zipfile.ZIP64_LIMIT
1008 zipfile.ZIP64_LIMIT = (1 << 32) - 1
1018 # `zipfile.write()` doesn't allow us to pass ZipInfo, so just modify the
1031 zipfile.ZIP64_LIMIT = saved_zip64_limit
1036 """Wrap zipfile.writestr() function to work around the zip64 limit.
1047 saved_zip64_limit = zipfile.ZIP64_LIMIT
1048 zipfile.ZIP64_LIMIT = (1 << 32) - 1
1050 if not isinstance(zinfo_or_arcname, zipfile.ZipInfo):
1051 zinfo = zipfile.ZipInfo(filename=zinfo_or_arcname)
1073 zipfile.ZIP64_LIMIT = saved_zip64_limit
1078 # zipfile also refers to ZIP64_LIMIT during close() when it writes out the
1080 saved_zip64_limit = zipfile.ZIP64_LIMIT
1081 zipfile.ZIP64_LIMIT = (1 << 32) - 1
1085 zipfile.ZIP64_LIMIT = saved_zip64_limit
1520 compress_type=zipfile.ZIP_STORED)