/external/python/cpython3/Lib/ |
D | bz2.py | 39 def __init__(self, filename, mode="r", buffering=None, compresslevel=9): argument 70 if not (1 <= compresslevel <= 9): 79 self._compressor = BZ2Compressor(compresslevel) 83 self._compressor = BZ2Compressor(compresslevel) 87 self._compressor = BZ2Compressor(compresslevel) 285 def open(filename, mode="rb", compresslevel=9, argument 318 binary_file = BZ2File(filename, bz_mode, compresslevel=compresslevel) 326 def compress(data, compresslevel=9): argument 333 comp = BZ2Compressor(compresslevel)
|
D | gzip.py | 20 def open(filename, mode="rb", compresslevel=9, argument 53 binary_file = GzipFile(filename, gz_mode, compresslevel) 55 binary_file = GzipFile(None, gz_mode, compresslevel, filename) 124 compresslevel=9, fileobj=None, mtime=None): argument 182 self.compress = zlib.compressobj(compresslevel, 518 def compress(data, compresslevel=9): argument 523 with GzipFile(fileobj=buf, mode='wb', compresslevel=compresslevel) as f:
|
D | zipfile.py | 682 def _get_compressor(compress_type, compresslevel=None): argument 684 if compresslevel is not None: 685 return zlib.compressobj(compresslevel, zlib.DEFLATED, -15) 688 if compresslevel is not None: 689 return bz2.BZ2Compressor(compresslevel) 1173 compresslevel=None): argument 1187 self.compresslevel = compresslevel 1464 zinfo._compresslevel = self.compresslevel 1699 compress_type=None, compresslevel=None): argument 1721 if compresslevel is not None: [all …]
|
D | tarfile.py | 1624 def gzopen(cls, name, mode="r", fileobj=None, compresslevel=9, **kwargs): argument 1638 fileobj = gzip.GzipFile(name, mode + "b", compresslevel, fileobj) 1658 def bz2open(cls, name, mode="r", fileobj=None, compresslevel=9, **kwargs): argument 1671 compresslevel=compresslevel)
|
/external/python/cpython3/Modules/clinic/ |
D | _bz2module.c.h | 76 _bz2_BZ2Compressor___init___impl(BZ2Compressor *self, int compresslevel); 82 int compresslevel = 9; in _bz2_BZ2Compressor___init__() local 89 &compresslevel)) { in _bz2_BZ2Compressor___init__() 92 return_value = _bz2_BZ2Compressor___init___impl((BZ2Compressor *)self, compresslevel); in _bz2_BZ2Compressor___init__()
|
/external/python/cpython3/Doc/library/ |
D | bz2.rst | 34 .. function:: open(filename, mode='r', compresslevel=9, encoding=None, errors=None, newline=None) 47 The *compresslevel* argument is an integer from 1 to 9, as for the 51 constructor: ``BZ2File(filename, mode, compresslevel=compresslevel)``. In 68 .. class:: BZ2File(filename, mode='r', buffering=None, compresslevel=9) 86 If *mode* is ``'w'`` or ``'a'``, *compresslevel* can be a number between 141 .. class:: BZ2Compressor(compresslevel=9) 147 *compresslevel*, if given, must be a number between ``1`` and ``9``. The 231 .. function:: compress(data, compresslevel=9) 235 *compresslevel*, if given, must be a number between ``1`` and ``9``. The
|
D | gzip.rst | 29 .. function:: open(filename, mode='rb', compresslevel=9, encoding=None, errors=None, newline=None) 41 The *compresslevel* argument is an integer from 0 to 9, as for the 45 constructor: ``GzipFile(filename, mode, compresslevel)``. In this case, the 62 .. class:: GzipFile(filename=None, mode=None, compresslevel=9, fileobj=None, mtime=None) 89 The *compresslevel* argument is an integer from ``0`` to ``9`` controlling 160 .. function:: compress(data, compresslevel=9) 163 the compressed data. *compresslevel* has the same meaning as in
|
D | zipfile.rst | 134 compresslevel=None) 164 The *compresslevel* parameter controls the compression level to use when 204 Add the *compresslevel* parameter. 371 compresslevel=None) 377 the new entry. Similarly, *compresslevel* will override the constructor if 398 compresslevel=None) 410 (if that is a :class:`ZipInfo` instance). Similarly, *compresslevel* will
|
D | tarfile.rst | 103 *compresslevel* (default ``9``) to specify the compression level of the file.
|
/external/python/cpython2/Doc/library/ |
D | gzip.rst | 28 .. 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``.
|
D | bz2.rst | 48 .. 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,
|
D | tarfile.rst | 82 accepts the keyword argument *compresslevel* (default ``9``) to
|
/external/python/cpython2/Modules/ |
D | bz2module.c | 1389 int compresslevel = 9; in BZ2File_init() local 1397 &compresslevel)) in BZ2File_init() 1400 if (compresslevel < 1 || compresslevel > 9) { in BZ2File_init() 1475 compresslevel, 0, 0); in BZ2File_init() 1791 int compresslevel = 9; in BZ2Comp_init() local 1796 kwlist, &compresslevel)) in BZ2Comp_init() 1799 if (compresslevel < 1 || compresslevel > 9) { in BZ2Comp_init() 1814 bzerror = BZ2_bzCompressInit(&self->bzs, compresslevel, 0, 0); in BZ2Comp_init() 2149 int compresslevel=9; in bz2_compress() local 2162 &compresslevel)) in bz2_compress() [all …]
|
/external/python/cpython3/Modules/ |
D | _bz2module.c | 306 _bz2_BZ2Compressor___init___impl(BZ2Compressor *self, int compresslevel) in _bz2_BZ2Compressor___init___impl() argument 311 if (!(1 <= compresslevel && compresslevel <= 9)) { in _bz2_BZ2Compressor___init___impl() 326 bzerror = BZ2_bzCompressInit(&self->bzs, compresslevel, 0, 0); in _bz2_BZ2Compressor___init___impl()
|
/external/python/cpython2/Lib/ |
D | gzip.py | 27 def open(filename, mode="rb", compresslevel=9): argument 34 return GzipFile(filename, mode, compresslevel) 46 compresslevel=9, fileobj=None, mtime=None): argument 122 self.compress = zlib.compressobj(compresslevel,
|
D | tarfile.py | 1726 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)
|
D | xmlrpclib.py | 1164 gzf = gzip.GzipFile(mode="wb", fileobj=f, compresslevel=1)
|
/external/jsoncpp/devtools/ |
D | tarball.py | 32 tar = tarfile.TarFile.gzopen( tarball_path, 'w', compresslevel=compression )
|
/external/python/cpython3/Lib/test/ |
D | test_bz2.py | 76 BIG_DATA = bz2.compress(BIG_TEXT, compresslevel=1) 99 self.assertRaises(ValueError, BZ2File, os.devnull, compresslevel=0) 100 self.assertRaises(ValueError, BZ2File, os.devnull, compresslevel=10) 260 expected = bz2.compress(self.TEXT, compresslevel=5) 261 with BZ2File(self.filename, "w", compresslevel=5) as bz2f: 555 bomb = bz2.compress(b'\0' * int(2e6), compresslevel=9)
|
D | test_zipfile.py | 56 def make_test_archive(self, f, compression, compresslevel=None): argument 57 kwargs = {'compression': compression, 'compresslevel': compresslevel} 67 def zip_test(self, f, compression, compresslevel=None): argument 68 self.make_test_archive(f, compression, compresslevel) 302 zipfp = zipfile.ZipFile(TESTFN2, "w", compresslevel=1) 305 compresslevel=2) 392 self.zip_test(f, self.compression, compresslevel=9) 397 with zipfile.ZipFile(TESTFN2, "w", compresslevel=1) as zipfp: 399 zipfp.write(TESTFN, 'compress_9', compresslevel=9)
|
D | test_gzip.py | 145 compressed = gzip.compress(data1, compresslevel=1) 482 bomb = gzip.compress(b'\0' * int(2e6), compresslevel=9)
|
D | test_tarfile.py | 788 with bz2.BZ2File(tmpname, "wb", compresslevel=1) as fobj:
|
/external/python/httplib2/tests/ |
D | __init__.py | 670 gf = gzip.GzipFile(fileobj=buf, mode="wb", compresslevel=6)
|
/external/python/cpython3/Lib/xmlrpc/ |
D | client.py | 1039 with gzip.GzipFile(mode="wb", fileobj=f, compresslevel=1) as gzf:
|
/external/python/cpython2/Lib/test/ |
D | test_tarfile.py | 605 with bz2.BZ2File(tmpname, "wb", compresslevel=1) as fobj:
|