HomeSort by relevance Sort by last modified time
    Searched refs:compresslevel (Results 1 - 22 of 22) sorted by null

  /external/python/cpython3/Lib/
bz2.py 39 def __init__(self, filename, mode="r", buffering=None, compresslevel=9):
52 If mode is 'w', 'x' or 'a', compresslevel can be a number between 1
70 if not (1 <= compresslevel <= 9):
71 raise ValueError("compresslevel must be between 1 and 9")
79 self._compressor = BZ2Compressor(compresslevel)
83 self._compressor = BZ2Compressor(compresslevel)
87 self._compressor = BZ2Compressor(compresslevel)
285 def open(filename, mode="rb", compresslevel=9,
295 The default mode is "rb", and the default compresslevel is 9.
298 constructor: BZ2File(filename, mode, compresslevel). In this case
    [all...]
gzip.py 20 def open(filename, mode="rb", compresslevel=9,
29 "rb", and the default compresslevel is 9.
32 GzipFile(filename, mode, compresslevel). In this case, the encoding, errors
53 binary_file = GzipFile(filename, gz_mode, compresslevel)
55 binary_file = GzipFile(None, gz_mode, compresslevel, filename)
124 compresslevel=9, fileobj=None, mtime=None):
147 The compresslevel argument is an integer from 0 to 9 controlling the
182 self.compress = zlib.compressobj(compresslevel,
518 def compress(data, compresslevel=9):
523 with GzipFile(fileobj=buf, mode='wb', compresslevel=compresslevel) as f
    [all...]
zipfile.py 682 def _get_compressor(compress_type, compresslevel=None):
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)
691 # compresslevel is ignored for ZIP_LZMA
    [all...]
tarfile.py     [all...]
  /external/python/cpython3/Modules/clinic/
_bz2module.c.h 65 "BZ2Compressor(compresslevel=9, /)\n"
70 " compresslevel\n"
76 _bz2_BZ2Compressor___init___impl(BZ2Compressor *self, int compresslevel);
82 int compresslevel = 9; local
89 &compresslevel)) {
92 return_value = _bz2_BZ2Compressor___init___impl((BZ2Compressor *)self, compresslevel);
  /external/jsoncpp/devtools/
tarball.py 32 tar = tarfile.TarFile.gzopen( tarball_path, 'w', compresslevel=compression )
  /external/python/cpython3/Modules/
_bz2module.c 296 compresslevel: int = 9
306 _bz2_BZ2Compressor___init___impl(BZ2Compressor *self, int compresslevel)
311 if (!(1 <= compresslevel && compresslevel <= 9)) {
313 "compresslevel must be between 1 and 9");
326 bzerror = BZ2_bzCompressInit(&self->bzs, compresslevel, 0, 0);
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
bz2module.c 1372 int compresslevel = 9; local
1774 int compresslevel = 9; local
2124 int compresslevel=9; local
    [all...]
  /external/python/cpython2/Modules/
bz2module.c 1389 int compresslevel = 9; local
1791 int compresslevel = 9; local
2149 int compresslevel=9; local
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
gzip.py 27 def open(filename, mode="rb", compresslevel=9):
28 """Shorthand for GzipFile(filename, mode, compresslevel).
31 and compresslevel defaults to 9.
34 return GzipFile(filename, mode, compresslevel)
46 compresslevel=9, fileobj=None, mtime=None):
69 The compresslevel argument is an integer from 1 to 9 controlling the
114 self.compress = zlib.compressobj(compresslevel,
tarfile.py     [all...]
xmlrpclib.py     [all...]
  /external/python/cpython2/Lib/
gzip.py 27 def open(filename, mode="rb", compresslevel=9):
28 """Shorthand for GzipFile(filename, mode, compresslevel).
31 and compresslevel defaults to 9.
34 return GzipFile(filename, mode, compresslevel)
46 compresslevel=9, fileobj=None, mtime=None):
69 The compresslevel argument is an integer from 0 to 9 controlling the
122 self.compress = zlib.compressobj(compresslevel,
tarfile.py     [all...]
xmlrpclib.py     [all...]
  /external/python/cpython3/Lib/test/
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)
    [all...]
test_zipfile.py 56 def make_test_archive(self, f, compression, compresslevel=None):
57 kwargs = {'compression': compression, 'compresslevel': compresslevel}
67 def zip_test(self, f, compression, compresslevel=None):
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
    [all...]
test_gzip.py 145 compressed = gzip.compress(data1, compresslevel=1)
482 bomb = gzip.compress(b'\0' * int(2e6), compresslevel=9)
test_tarfile.py 788 with bz2.BZ2File(tmpname, "wb", compresslevel=1) as fobj:
    [all...]
  /external/python/httplib2/tests/
__init__.py 670 gf = gzip.GzipFile(fileobj=buf, mode="wb", compresslevel=6)
  /external/python/cpython3/Lib/xmlrpc/
client.py     [all...]
  /external/python/cpython2/Lib/test/
test_tarfile.py 605 with bz2.BZ2File(tmpname, "wb", compresslevel=1) as fobj:
    [all...]

Completed in 1102 milliseconds