summaryrefslogtreecommitdiffstats
path: root/Lib/lzma.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-115961: Add name and mode attributes for compressed file-like objects ↵Serhiy Storchaka2024-04-211-5/+13
| | | | | | | | | | (GH-116036) * Add name and mode attributes for compressed and archived file-like objects in modules bz2, lzma, tarfile and zipfile. * Change the value of the mode attribute of GzipFile from integer (1 or 2) to string ('rb' or 'wb'). * Change the value of the mode attribute of ZipExtFile from 'r' to 'rb'.
* bpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and ↵Inada Naoki2021-10-191-4/+0
| | | | | LZMAFile. (GH-29016) This reverts commit d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e.
* bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol ↵Ma Lin2021-06-221-4/+12
| | | | | | | correctly (GH-26764) No longer use len() to get the length of the input data. For some buffer protocol objects, the length obtained by using len() is wrong.
* bpo-43787: Add __iter__ to GzipFile, BZ2File, and LZMAFile (GH-25353)Inada Naoki2021-04-131-0/+4
|
* bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481)Inada Naoki2021-03-291-0/+1
| | | | | | | | | | | See [PEP 597](https://www.python.org/dev/peps/pep-0597/). * Add `-X warn_default_encoding` and `PYTHONWARNDEFAULTENCODING`. * Add EncodingWarning * Add io.text_encoding() * open(), TextIOWrapper() emits EncodingWarning when encoding is omitted and warn_default_encoding is enabled. * _pyio.TextIOWrapper() uses UTF-8 as fallback default encoding used when failed to import locale module. (used during building Python) * bz2, configparser, gzip, lzma, pathlib, tempfile modules use io.text_encoding(). * What's new entry
* Issue #28229: lzma module now supports pathlibBerker Peksag2016-10-041-8/+10
|
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
|
* Issue #23529: Limit the size of decompressed data when reading fromAntoine Pitrou2015-04-101-195/+29
| | | | | | | | GzipFile, BZ2File or LZMAFile. This defeats denial of service attacks using compressed bombs (i.e. compressed payloads which decompress to a huge size). Patch by Martin Panter and Nikolaus Rath.
* Closes #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF.Nadeem Vawda2013-12-041-7/+21
|\ | | | | | | Also fix an analogous bug (not a regression) in the lzma module.
| * #19839: Fix lzma module's handling of non-lzma data at EOF.Nadeem Vawda2013-12-041-7/+21
| |
* | Issue #19201: Add support for the 'x' mode to the lzma module.Nadeem Vawda2013-10-181-6/+7
| | | | | | | | Patch by Tim Heaney and Vajrasky Kok.
* | Issue #16034 follow-up: Apply optimizations to the lzma module.Nadeem Vawda2012-10-211-29/+70
| |
* | lzma module: Rewrap docstrings at 72 columns, as per PEP 8.Nadeem Vawda2012-10-131-15/+16
|/
* #15546: Fix {GzipFile,LZMAFile}.read1()'s handling of pathological input data.Nadeem Vawda2012-08-051-23/+28
|
* Make lzma.{encode,decode}_filter_properties private.Nadeem Vawda2012-06-211-1/+1
| | | | | | | | These functions were originally added to support LZMA compression in the zipfile module, and are not of interest for the majority of users. They can be made public in 3.4 if there is user interest, but in the meanwhile, I've opted to present a smaller, simpler API for the module's initial release.
* Add a function lzma.open(), to match gzip.open() and bz2.open().Nadeem Vawda2012-06-041-2/+48
|
* Allow LZMAFile to accept modes with a "b" suffix.Nadeem Vawda2012-06-041-4/+6
|
* Simplify usage of LZMAFile's fileobj support, like with BZ2File.Nadeem Vawda2012-06-041-10/+9
|
* Rename lzma.check_is_supported() to is_check_supported() to avoid ↵Nadeem Vawda2012-05-061-1/+1
| | | | grammatical confusion.
* Add lzma.{encode,decode}_filter_properties().Nadeem Vawda2012-05-061-0/+1
|
* Fix seekable() in BZ2File and LZMAFile to check whether the underlying file ↵Nadeem Vawda2012-02-111-2/+5
| | | | supports seek().
* Issue #6715: Add module for compression using the LZMA algorithm.Nadeem Vawda2011-11-291-0/+398