Lines Matching refs:compresslevel
25 def open(filename, mode="rb", compresslevel=_COMPRESS_LEVEL_BEST, argument
58 binary_file = GzipFile(filename, gz_mode, compresslevel)
60 binary_file = GzipFile(None, gz_mode, compresslevel, filename)
135 compresslevel=_COMPRESS_LEVEL_BEST, fileobj=None, mtime=None): argument
201 self.compress = zlib.compressobj(compresslevel,
213 self._write_gzip_header(compresslevel)
240 def _write_gzip_header(self, compresslevel): argument
261 if compresslevel == _COMPRESS_LEVEL_BEST:
263 elif compresslevel == _COMPRESS_LEVEL_FAST:
543 def compress(data, compresslevel=_COMPRESS_LEVEL_BEST, *, mtime=None): argument
548 with GzipFile(fileobj=buf, mode='wb', compresslevel=compresslevel, mtime=mtime) as f:
574 compresslevel = _COMPRESS_LEVEL_TRADEOFF
576 compresslevel = _COMPRESS_LEVEL_FAST
578 compresslevel = _COMPRESS_LEVEL_BEST
594 compresslevel=compresslevel)