Home
last modified time | relevance | path

Searched refs:BZ2File (Results 1 – 25 of 31) sorted by relevance

12

/external/python/cpython3/Lib/test/
Dtest_bz2.py22 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 …]
Dtest_fileinput.py895 original_open = bz2.BZ2File
896 bz2.BZ2File = self.fake_open
900 bz2.BZ2File = original_open
Dtest_tarfile.py71 open = bz2.BZ2File if bz2 else None
828 with bz2.BZ2File(tmpname, "wb", compresslevel=1) as fobj:
/external/python/cpython2/Lib/test/
Dtest_bz2.py16 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 …]
Dtest_tarfile.py277 _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/
Dbz2.rst19 * :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/
Dbz2.rst21 * 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 …]
Dlzma.rst23 :class:`bz2.BZ2File`, so if you need to use a single :class:`LZMAFile` instance
Dzipfile.rst179 (see :class:`bz2 <bz2.BZ2File>` for more information).
/external/python/cpython3/Lib/
Dbz2.py27 class BZ2File(_compression.BaseStream): class
311 binary_file = BZ2File(filename, bz_mode, compresslevel=compresslevel)
Dfileinput.py405 return bz2.BZ2File(filename, mode)
Dtarfile.py1703 from bz2 import BZ2File
1707 fileobj = BZ2File(fileobj or name, mode, compresslevel=compresslevel)
/external/autotest/client/site_tests/graphics_dEQP/
Dgraphics_dEQP.py172 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/
Dparse.py383 from bz2 import BZ2File
384 stream = BZ2File(arg, 'rU')
/external/python/cpython2/Lib/
Dfileinput.py376 return bz2.BZ2File(filename, mode)
Dtarfile.py1775 fileobj = bz2.BZ2File(name, mode, compresslevel=compresslevel)
/external/autotest/server/site_tests/telemetry_AFDOGenerate/
Dtelemetry_AFDOGenerate.py401 with bz2.BZ2File(dest, 'w') as out:
/external/python/cpython2/Misc/NEWS.d/
D2.6b3.rst327 When iterating over a BZ2File fails allocating memory, raise a MemoryError
D2.7.1rc1.rst956 BZ2File object, rather than returning incorrect results.
D2.7.3rc1.rst1413 FileIO, BZ2File, and the built-in file class now use a linear-time buffer
/external/python/cpython3/Misc/NEWS.d/
D3.5.0a4.rst253 Limit the size of decompressed data when reading from GzipFile, BZ2File or
D3.9.0a3.rst349 Remove the *buffering* parameter of :class:`bz2.BZ2File`. Since Python 3.0,
/external/python/cpython3/Doc/whatsnew/
D3.1.rst240 * The :class:`gzip.GzipFile` and :class:`bz2.BZ2File` classes now support
D3.3.rst966 * :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,
D3.9.rst1004 * The *buffering* parameter of :class:`bz2.BZ2File` has been removed. Since
1067 * The *compresslevel* parameter of :class:`bz2.BZ2File` became keyword-only,

12