Home
last modified time | relevance | path

Searched refs:compresslevel (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython2/Doc/library/
Dgzip.rst28 .. class:: GzipFile([filename[, mode[, compresslevel[, fileobj[, mtime]]]]])
52 The *compresslevel* argument is an integer from ``0`` to ``9`` controlling
84 .. function:: open(filename[, mode[, compresslevel]])
86 This is a shorthand for ``GzipFile(filename,`` ``mode,`` ``compresslevel)``.
88 *compresslevel* defaults to ``9``.
Dbz2.rst48 .. class:: BZ2File(filename[, mode[, buffering[, compresslevel]]])
54 ``0``. If *compresslevel* is given, it must be a number between ``1`` and
159 .. class:: BZ2Compressor([compresslevel])
163 :func:`compress` function instead. The *compresslevel* parameter, if given,
204 .. function:: compress(data[, compresslevel])
207 an instance of :class:`BZ2Compressor` instead. The *compresslevel* parameter,
Dtarfile.rst82 accepts the keyword argument *compresslevel* (default ``9``) to
/external/python/cpython2/Modules/
Dbz2module.c1365 int compresslevel = 9; in BZ2File_init() local
1373 &compresslevel)) in BZ2File_init()
1376 if (compresslevel < 1 || compresslevel > 9) { in BZ2File_init()
1446 compresslevel, 0, 0); in BZ2File_init()
1777 int compresslevel = 9; in BZ2Comp_init() local
1782 kwlist, &compresslevel)) in BZ2Comp_init()
1785 if (compresslevel < 1 || compresslevel > 9) { in BZ2Comp_init()
1800 bzerror = BZ2_bzCompressInit(&self->bzs, compresslevel, 0, 0); in BZ2Comp_init()
2135 int compresslevel=9; in bz2_compress() local
2148 &compresslevel)) in bz2_compress()
[all …]
/external/python/cpython2/Lib/
Dgzip.py27 def open(filename, mode="rb", compresslevel=9): argument
34 return GzipFile(filename, mode, compresslevel)
46 compresslevel=9, fileobj=None, mtime=None): argument
123 self.compress = zlib.compressobj(compresslevel,
Dtarfile.py1726 def gzopen(cls, name, mode="r", fileobj=None, compresslevel=9, **kwargs): argument
1740 fileobj = gzip.GzipFile(name, mode, compresslevel, fileobj)
1760 def bz2open(cls, name, mode="r", fileobj=None, compresslevel=9, **kwargs): argument
1775 fileobj = bz2.BZ2File(name, mode, compresslevel=compresslevel)
Dxmlrpclib.py1164 gzf = gzip.GzipFile(mode="wb", fileobj=f, compresslevel=1)
/external/jsoncpp/devtools/
Dtarball.py32 tar = tarfile.TarFile.gzopen( tarball_path, 'w', compresslevel=compression )
/external/python/cpython2/Lib/test/
Dtest_tarfile.py605 with bz2.BZ2File(tmpname, "wb", compresslevel=1) as fobj: