Searched refs:LZMAFile (Results 1 – 8 of 8) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_lzma.py | 16 from lzma import LZMACompressor, LZMADecompressor, LZMAError, LZMAFile 534 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f: 536 with LZMAFile(BytesIO(), "w") as f: 538 with LZMAFile(BytesIO(), "x") as f: 540 with LZMAFile(BytesIO(), "a") as f: 546 with LZMAFile(filename) as f: 548 with LZMAFile(filename, "a") as f: 550 with LZMAFile(filename) as f: 555 with LZMAFile(TESTFN) as f: 557 with LZMAFile(TESTFN, "w") as f: [all …]
|
D | test_tarfile.py | 78 open = lzma.LZMAFile if lzma else None
|
/external/python/cpython3/Doc/library/ |
D | lzma.rst | 22 module. However, note that :class:`LZMAFile` is *not* thread-safe, unlike 23 :class:`bz2.BZ2File`, so if you need to use a single :class:`LZMAFile` instance 57 For binary mode, this function is equivalent to the :class:`LZMAFile` 58 constructor: ``LZMAFile(filename, mode, ...)``. In this case, the *encoding*, 61 For text mode, a :class:`LZMAFile` object is created, and wrapped in an 72 .. class:: LZMAFile(filename=None, mode="r", \*, format=None, check=-1, preset=None, filters=None) 76 An :class:`LZMAFile` can wrap an already-open :term:`file object`, or operate 81 :class:`LZMAFile` is closed. 102 :class:`LZMAFile` supports all the members specified by 115 the :class:`LZMAFile`, it may change the position of the underlying [all …]
|
/external/python/cpython3/Lib/ |
D | lzma.py | 38 class LZMAFile(_compression.BaseStream): class 301 binary_file = LZMAFile(filename, lz_mode, format=format, check=check,
|
D | tarfile.py | 1731 from lzma import LZMAFile, LZMAError 1735 fileobj = LZMAFile(fileobj or name, mode, preset=preset)
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.0a4.rst | 254 LZMAFile. This defeats denial of service attacks using compressed bombs
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.4.rst | 2037 most cases. :class:`lzma.LZMAFile` has also been optimized. (Contributed by
|
/external/python/cpython3/Misc/ |
D | HISTORY | 5754 - Improve performance of `lzma.LZMAFile` (see also issue #16034). 6856 read1() methods of the BZ2File, GzipFile and LZMAFile classes. 7333 - LZMAFile now accepts the modes "rb"/"wb"/"ab" as synonyms of "r"/"w"/"a". 7338 - BZ2File.__init__() and LZMAFile.__init__() now accept a file object as their
|