Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-115961: Add name and mode attributes for compressed file-like objects ↵ | Serhiy Storchaka | 2024-04-21 | 1 | -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 Naoki | 2021-10-19 | 1 | -4/+0 |
| | | | | | LZMAFile. (GH-29016) This reverts commit d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e. | ||||
* | bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol ↵ | Ma Lin | 2021-06-22 | 1 | -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 Naoki | 2021-04-13 | 1 | -0/+4 |
| | |||||
* | bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481) | Inada Naoki | 2021-03-29 | 1 | -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 pathlib | Berker Peksag | 2016-10-04 | 1 | -8/+10 |
| | |||||
* | Issue #26778: Fixed "a/an/and" typos in code comment and documentation. | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
| | |||||
* | Issue #23529: Limit the size of decompressed data when reading from | Antoine Pitrou | 2015-04-10 | 1 | -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 Vawda | 2013-12-04 | 1 | -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 Vawda | 2013-12-04 | 1 | -7/+21 |
| | | |||||
* | | Issue #19201: Add support for the 'x' mode to the lzma module. | Nadeem Vawda | 2013-10-18 | 1 | -6/+7 |
| | | | | | | | | Patch by Tim Heaney and Vajrasky Kok. | ||||
* | | Issue #16034 follow-up: Apply optimizations to the lzma module. | Nadeem Vawda | 2012-10-21 | 1 | -29/+70 |
| | | |||||
* | | lzma module: Rewrap docstrings at 72 columns, as per PEP 8. | Nadeem Vawda | 2012-10-13 | 1 | -15/+16 |
|/ | |||||
* | #15546: Fix {GzipFile,LZMAFile}.read1()'s handling of pathological input data. | Nadeem Vawda | 2012-08-05 | 1 | -23/+28 |
| | |||||
* | Make lzma.{encode,decode}_filter_properties private. | Nadeem Vawda | 2012-06-21 | 1 | -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 Vawda | 2012-06-04 | 1 | -2/+48 |
| | |||||
* | Allow LZMAFile to accept modes with a "b" suffix. | Nadeem Vawda | 2012-06-04 | 1 | -4/+6 |
| | |||||
* | Simplify usage of LZMAFile's fileobj support, like with BZ2File. | Nadeem Vawda | 2012-06-04 | 1 | -10/+9 |
| | |||||
* | Rename lzma.check_is_supported() to is_check_supported() to avoid ↵ | Nadeem Vawda | 2012-05-06 | 1 | -1/+1 |
| | | | | grammatical confusion. | ||||
* | Add lzma.{encode,decode}_filter_properties(). | Nadeem Vawda | 2012-05-06 | 1 | -0/+1 |
| | |||||
* | Fix seekable() in BZ2File and LZMAFile to check whether the underlying file ↵ | Nadeem Vawda | 2012-02-11 | 1 | -2/+5 |
| | | | | supports seek(). | ||||
* | Issue #6715: Add module for compression using the LZMA algorithm. | Nadeem Vawda | 2011-11-29 | 1 | -0/+398 |