Searched refs:BZ2File (Results 1 – 25 of 31) sorted by relevance
12
/external/python/cpython3/Lib/test/ |
D | test_bz2.py | 22 from bz2 import BZ2File, BZ2Compressor, BZ2Decompressor 96 self.assertRaises(TypeError, BZ2File, 123.456) 97 self.assertRaises(ValueError, BZ2File, os.devnull, "z") 98 self.assertRaises(ValueError, BZ2File, os.devnull, "rx") 99 self.assertRaises(ValueError, BZ2File, os.devnull, "rbt") 100 self.assertRaises(ValueError, BZ2File, os.devnull, compresslevel=0) 101 self.assertRaises(ValueError, BZ2File, os.devnull, compresslevel=10) 104 self.assertRaises(TypeError, BZ2File, os.devnull, "r", 3) 108 with BZ2File(self.filename) as bz2f: 114 with BZ2File(self.filename) as bz2f: [all …]
|
D | test_fileinput.py | 895 original_open = bz2.BZ2File 896 bz2.BZ2File = self.fake_open 900 bz2.BZ2File = original_open
|
D | test_tarfile.py | 71 open = bz2.BZ2File if bz2 else None 828 with bz2.BZ2File(tmpname, "wb", compresslevel=1) as fobj:
|
/external/python/cpython2/Lib/test/ |
D | test_bz2.py | 16 from bz2 import BZ2File, BZ2Compressor, BZ2Decompressor 68 with BZ2File(self.filename) as bz2f: 75 with BZ2File(self.filename) as bz2f: 82 with BZ2File(self.filename) as bz2f: 94 with BZ2File(self.filename) as bz2f: 100 with BZ2File(self.filename) as bz2f: 109 with BZ2File(self.filename) as bz2f: 117 with BZ2File(self.filename) as bz2f: 125 bz2f = BZ2File(self.filename) 135 bz2f = BZ2File(self.filename) [all …]
|
D | test_tarfile.py | 277 _open = bz2.BZ2File 377 _open = bz2.BZ2File 605 with bz2.BZ2File(tmpname, "wb", compresslevel=1) as fobj: 1882 tar = bz2.BZ2File(bz2name, "wb")
|
/external/python/cpython2/Doc/library/ |
D | bz2.rst | 19 * :class:`BZ2File` class implements a complete file interface, including 20 :meth:`~BZ2File.readline`, :meth:`~BZ2File.readlines`, 21 :meth:`~BZ2File.writelines`, :meth:`~BZ2File.seek`, etc; 23 * :class:`BZ2File` class implements emulated :meth:`~BZ2File.seek` support; 25 * :class:`BZ2File` class implements universal newline support; 27 * :class:`BZ2File` class offers an optimized line iteration using the readahead 42 Handling of compressed files is offered by the :class:`BZ2File` class. 46 single: universal newlines; bz2.BZ2File class 48 .. class:: BZ2File(filename[, mode[, buffering[, compresslevel]]]) 64 :class:`BZ2File` supports the :keyword:`with` statement. [all …]
|
/external/python/cpython3/Doc/library/ |
D | bz2.rst | 21 * The :func:`.open` function and :class:`BZ2File` class for reading and 39 As with the constructor for :class:`BZ2File`, the *filename* argument can be 48 :class:`BZ2File` constructor. 50 For binary mode, this function is equivalent to the :class:`BZ2File` 51 constructor: ``BZ2File(filename, mode, compresslevel=compresslevel)``. In 55 For text mode, a :class:`BZ2File` object is created, and wrapped in an 68 .. class:: BZ2File(filename, mode='r', *, compresslevel=9) 91 :class:`BZ2File` provides all of the members specified by the 95 :class:`BZ2File` also provides the following method: 104 the :class:`BZ2File`, it may change the position of the underlying file [all …]
|
D | lzma.rst | 23 :class:`bz2.BZ2File`, so if you need to use a single :class:`LZMAFile` instance
|
D | zipfile.rst | 179 (see :class:`bz2 <bz2.BZ2File>` for more information).
|
/external/python/cpython3/Lib/ |
D | bz2.py | 27 class BZ2File(_compression.BaseStream): class 311 binary_file = BZ2File(filename, bz_mode, compresslevel=compresslevel)
|
D | fileinput.py | 405 return bz2.BZ2File(filename, mode)
|
D | tarfile.py | 1703 from bz2 import BZ2File 1707 fileobj = BZ2File(fileobj or name, mode, compresslevel=compresslevel)
|
/external/autotest/client/site_tests/graphics_dEQP/ |
D | graphics_dEQP.py | 172 bz2.BZ2File(subset_file).read().splitlines()) 226 bz2.BZ2File(subset_file).read().splitlines()) 309 test_cases = bz2.BZ2File(subset_path).read().splitlines()
|
/external/mesa3d/src/gallium/tools/trace/ |
D | parse.py | 383 from bz2 import BZ2File 384 stream = BZ2File(arg, 'rU')
|
/external/python/cpython2/Lib/ |
D | fileinput.py | 376 return bz2.BZ2File(filename, mode)
|
D | tarfile.py | 1775 fileobj = bz2.BZ2File(name, mode, compresslevel=compresslevel)
|
/external/autotest/server/site_tests/telemetry_AFDOGenerate/ |
D | telemetry_AFDOGenerate.py | 401 with bz2.BZ2File(dest, 'w') as out:
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.6b3.rst | 327 When iterating over a BZ2File fails allocating memory, raise a MemoryError
|
D | 2.7.1rc1.rst | 956 BZ2File object, rather than returning incorrect results.
|
D | 2.7.3rc1.rst | 1413 FileIO, BZ2File, and the built-in file class now use a linear-time buffer
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.0a4.rst | 253 Limit the size of decompressed data when reading from GzipFile, BZ2File or
|
D | 3.9.0a3.rst | 349 Remove the *buffering* parameter of :class:`bz2.BZ2File`. Since Python 3.0,
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.1.rst | 240 * The :class:`gzip.GzipFile` and :class:`bz2.BZ2File` classes now support
|
D | 3.3.rst | 966 * :class:`bz2.BZ2File` can now read from and write to arbitrary file-like 971 * :class:`bz2.BZ2File` and :func:`bz2.decompress` can now decompress 973 :class:`bz2.BZ2File` can now also be used to create this type of file, using 978 * :class:`bz2.BZ2File` now implements all of the :class:`io.BufferedIOBase` API,
|
D | 3.9.rst | 1004 * The *buffering* parameter of :class:`bz2.BZ2File` has been removed. Since 1067 * The *compresslevel* parameter of :class:`bz2.BZ2File` became keyword-only,
|
12