Lines Matching defs:compression
11 import zlib # We may need its compression method
36 # constants for Zip file compression methods
39 # Other ZIP compression methods not supported
308 self.compress_type = ZIP_STORED # Type of compression for the file
530 raise NotImplementedError("compression type %d (%s)" % (self._compress_type, descr))
532 raise NotImplementedError("compression type %d" % (self._compress_type,))
708 z = ZipFile(file, mode="r", compression=ZIP_STORED, allowZip64=False)
713 compression: ZIP_STORED (no compression) or ZIP_DEFLATED (requires zlib).
722 def __init__(self, file, mode="r", compression=ZIP_STORED, allowZip64=False):
727 if compression == ZIP_STORED:
729 elif compression == ZIP_DEFLATED:
734 raise RuntimeError, "That compression method is not supported"
741 self.compression = compression # Method of compression
1099 "That compression method is not supported"
1129 zinfo.compress_type = self.compression
1204 zinfo.compress_type = self.compression