Home
last modified time | relevance | path

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

/third_party/python/Lib/test/
Dtest_bz2.py25 from bz2 import BZ2File, BZ2Compressor, BZ2Decompressor
99 self.assertRaises(TypeError, BZ2File, 123.456)
100 self.assertRaises(ValueError, BZ2File, os.devnull, "z")
101 self.assertRaises(ValueError, BZ2File, os.devnull, "rx")
102 self.assertRaises(ValueError, BZ2File, os.devnull, "rbt")
103 self.assertRaises(ValueError, BZ2File, os.devnull, compresslevel=0)
104 self.assertRaises(ValueError, BZ2File, os.devnull, compresslevel=10)
107 self.assertRaises(TypeError, BZ2File, os.devnull, "r", 3)
111 with BZ2File(self.filename) as bz2f:
117 with BZ2File(self.filename) as bz2f:
[all …]
Dtest_fileinput.py925 original_open = bz2.BZ2File
926 bz2.BZ2File = self.fake_open
930 bz2.BZ2File = original_open
Dtest_tarfile.py76 open = bz2.BZ2File if bz2 else None
843 with bz2.BZ2File(tmpname, "wb", compresslevel=1) as fobj:
/third_party/python/Doc/library/
Dbz2.rst21 * The :func:`.open` function and :class:`BZ2File` class for reading and
37 As with the constructor for :class:`BZ2File`, the *filename* argument can be
46 :class:`BZ2File` constructor.
48 For binary mode, this function is equivalent to the :class:`BZ2File`
49 constructor: ``BZ2File(filename, mode, compresslevel=compresslevel)``. In
53 For text mode, a :class:`BZ2File` object is created, and wrapped in an
66 .. class:: BZ2File(filename, mode='r', *, compresslevel=9)
89 :class:`BZ2File` provides all of the members specified by the
93 :class:`BZ2File` also provides the following method:
102 the :class:`BZ2File`, it may change the position of the underlying file
[all …]
Dlzma.rst22 module. Note that :class:`LZMAFile` and :class:`bz2.BZ2File` are *not*
Dzipfile.rst178 (see :class:`bz2 <bz2.BZ2File>` for more information).
/third_party/python/Lib/
Dbz2.py26 class BZ2File(_compression.BaseStream): class
304 binary_file = BZ2File(filename, bz_mode, compresslevel=compresslevel)
Dfileinput.py427 stream = bz2.BZ2File(filename, mode)
Dtarfile.py1707 from bz2 import BZ2File
1711 fileobj = BZ2File(fileobj or name, mode, compresslevel=compresslevel)
/third_party/node/tools/icu/
Dshrink-icu-src.py44 with bz2.BZ2File(outfp, 'wb') as outf:
/third_party/mesa3d/src/gallium/tools/trace/
Dparse.py403 from bz2 import BZ2File
404 stream = io.TextIOWrapper(BZ2File(fname, 'rb'))
/third_party/python/Misc/NEWS.d/
D3.10.0b1.rst754 Add ``__iter__()`` method to :class:`bz2.BZ2File`, :class:`gzip.GzipFile`,
883 Improve ``bz2.BZ2File`` performance by removing the RLock from BZ2File. This
884 makes BZ2File thread unsafe in the face of multiple simultaneous readers or
D3.10.0b4.rst232 Fix in :meth:`bz2.BZ2File.write` / :meth:`lzma.LZMAFile.write` methods, when
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,
D3.10.1.rst447 :class:`bz2.BZ2File`, and :class:`lzma.LZMAFile` (see bpo-43787) because it
/third_party/node/
Dconfigure.py1668 inf = bz2.BZ2File(compressed_data, 'rb')
/third_party/python/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.rst1012 * The *buffering* parameter of :class:`bz2.BZ2File` has been removed. Since
1075 * The *compresslevel* parameter of :class:`bz2.BZ2File` became keyword-only,
D3.10.rst1564 * :class:`BZ2File` performance is improved by removing internal ``RLock``.
1565 This makes :class:`BZ2File` thread unsafe in the face of multiple simultaneous
D2.7.rst1053 * The :mod:`bz2` module's :class:`~bz2.BZ2File` now supports the context
1054 management protocol, so you can write ``with bz2.BZ2File(...) as f:``.
D3.4.rst2036 * :class:`bz2.BZ2File` is now as fast or faster than the Python2 version for
/third_party/python/Misc/
DHISTORY5801 - Issue #16034: Fix performance regressions in the new `bz2.BZ2File`
6856 read1() methods of the BZ2File, GzipFile and LZMAFile classes.
7338 - BZ2File.__init__() and LZMAFile.__init__() now accept a file object as their
9569 - Issue #1625: BZ2File and bz2.decompress() now support multi-stream files.
9847 - Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept
12588 on a BZ2File object, rather than returning incorrect results.
13514 - Issue #8468: bz2.BZ2File() accepts str with surrogates and bytes filenames.
14001 - Issue #7205: Fix a possible deadlock when using a BZ2File object from
15745 - Issue #3860: GzipFile and BZ2File now support the context management protocol.
17503 - Patch #1535500: fix segfault in BZ2File.writelines and make sure it
[all …]
/third_party/node/doc/changelogs/
DCHANGELOG_V13.md745 …hub.com/nodejs/node/commit/964371824c)] - **build**: avoid using CMP for BZ2File (SpaceRacet5w2A6l…