Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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-43785: Improve BZ2File performance by removing RLock (GH-25299) | Inada Naoki | 2021-04-12 | 1 | -59/+44 |
| | | | | | | Remove `RLock` from `BZ2File`. It makes `BZ2File` to thread unsafe, but gzip and lzma don't use it too. Co-authored-by: Gregory P. Smith <greg@krypto.org> | ||||
* | 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 | ||||
* | bpo-40443: Remove unused imports in the stdlib (GH-19803) | Victor Stinner | 2020-04-30 | 1 | -1/+0 |
| | |||||
* | bpo-39357: Update bz2 docstring: remove buffering (GH-18036) | Victor Stinner | 2020-01-17 | 1 | -2/+0 |
| | | | Thanks Karthikeyan Singaravelan for the report ;-) | ||||
* | bpo-39357: Remove buffering parameter of bz2.BZ2File (GH-18028) | Victor Stinner | 2020-01-16 | 1 | -9/+1 |
| | | | | | | | Remove the buffering parameter of bz2.BZ2File. Since Python 3.0, it was ignored and using it was emitting a DeprecationWarning. Pass an open file object to control how the file is opened. The compresslevel parameter becomes keyword-only. | ||||
* | bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268) | Pablo Aguiar | 2018-11-01 | 1 | -1/+1 |
| | |||||
* | bpo-33487: improve BZ2File Deprecation and documentation. (GH-6785) | Matthias Bussonnier | 2018-09-11 | 1 | -5/+9 |
| | | | | Emit warning when None passed explicitly, list Python version since deprecation in warning message and docs. | ||||
* | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -5/+1 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
* | Issue #28225: bz2 module now supports pathlib | Berker Peksag | 2016-10-02 | 1 | -7/+9 |
| | | | | Initial patch by Ethan Furman. | ||||
* | Issue #23529: Limit the size of decompressed data when reading from | Antoine Pitrou | 2015-04-10 | 1 | -199/+38 |
| | | | | | | | | 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. | ||||
* | Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with | Serhiy Storchaka | 2015-03-11 | 1 | -2/+1 |
| | | | | imp.reload(). Patch by Thomas Kluyver. | ||||
* | Closes #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF. | Nadeem Vawda | 2013-12-04 | 1 | -10/+19 |
|\ | | | | | | | Also fix an analogous bug (not a regression) in the lzma module. | ||||
| * | #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF. | Nadeem Vawda | 2013-12-04 | 1 | -10/+19 |
| | | |||||
* | | Issue #19223: Add support for the 'x' mode to the bz2 module. | Nadeem Vawda | 2013-10-18 | 1 | -6/+10 |
| | | | | | | | | Patch by Tim Heaney and Vajrasky Kok. | ||||
* | | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) | Brett Cannon | 2013-07-04 | 1 | -1/+1 |
| | | |||||
* | | Issue #18200: Update the stdlib (except tests) to use | Brett Cannon | 2013-06-14 | 1 | -1/+1 |
| | | | | | | | | ModuleNotFoundError. | ||||
* | | bz2 module: Rewrap docstrings at 72 columns, as per PEP 8. | Nadeem Vawda | 2012-10-08 | 1 | -15/+16 |
| | | |||||
* | | Stylistic tweaks to the bz2 module to make it easier to transplant changes from | Nadeem Vawda | 2012-10-08 | 1 | -5/+8 |
|/ | | | | it to http://pypi.python.org/pypi/bz2file. | ||||
* | Issue #16304: Further optimize BZ2File.readlines?(). | Nadeem Vawda | 2012-10-01 | 1 | -6/+8 |
| | |||||
* | Fix error handling in new fast path of BZ2File.readline(). | Nadeem Vawda | 2012-10-01 | 1 | -0/+1 |
| | |||||
* | Issue #16304: Another performance optimization for BZ2File. | Nadeem Vawda | 2012-10-01 | 1 | -6/+3 |
| | | | | Patch by Serhiy Storchaka. | ||||
* | Issue #16304: Further performance improvements for BZ2File. | Nadeem Vawda | 2012-09-30 | 1 | -3/+9 |
| | | | | Optimizations suggested by Serhiy Storchaka. | ||||
* | Fix the return value of BZ2File._read_block() to be consistent with comments. | Nadeem Vawda | 2012-09-30 | 1 | -1/+1 |
| | |||||
* | Issue #16034: Fix performance regressions in the new BZ2File implementation. | Nadeem Vawda | 2012-09-30 | 1 | -26/+55 |
| | | | | Thanks to Victor Hooi for the bug report, and Serhiy Storchaka for the initial patch. | ||||
* | #15546: Fix BZ2File.read1()'s handling of pathological input data. | Nadeem Vawda | 2012-08-04 | 1 | -23/+28 |
| | |||||
* | Add a function bz2.open(), to match gzip.open(). | Nadeem Vawda | 2012-06-04 | 1 | -3/+44 |
| | |||||
* | Clarify acceptable values for BZ2File.__init__'s mode argument. | Nadeem Vawda | 2012-06-04 | 1 | -2/+2 |
| | |||||
* | Make BZ2File's fileobj support easier to use. | Nadeem Vawda | 2012-06-04 | 1 | -9/+8 |
| | | | | | The fileobj argument was added during the 3.3 development cycle, so this change does not break backward compatibility with 3.2. | ||||
* | Fix seekable() in BZ2File and LZMAFile to check whether the underlying file ↵ | Nadeem Vawda | 2012-02-11 | 1 | -2/+5 |
| | | | | supports seek(). | ||||
* | Make BZ2File.__init__()'s fileobj argument keyword-only. | Nadeem Vawda | 2012-02-04 | 1 | -1/+1 |
| | |||||
* | Update docstring for BZ2File.__init__(). | Nadeem Vawda | 2012-02-04 | 1 | -3/+7 |
| | |||||
* | Issue #13809: Make bz2 module work with threads disabled. | Nadeem Vawda | 2012-01-17 | 1 | -2/+6 |
| | | | | Original patch by Amaury Forgeot d'Arc. | ||||
* | Make error handling in BZ2File.{readable,seekable,writable,fileno} ↵ | Nadeem Vawda | 2011-11-30 | 1 | -3/+3 |
| | | | | | | consistent with TextIOWrapper. Also, add tests for these methods. | ||||
* | BZ2File now uses the compresslevel argument given by the caller, | Nadeem Vawda | 2011-09-11 | 1 | -2/+2 |
| | | | | instead of ignoring it and always using a compression level of 9. | ||||
* | Miscellaneous cleanups to bz2 and test_bz2 following issue #1625. | Nadeem Vawda | 2011-05-29 | 1 | -3/+3 |
| | | | | | | | * In bz2.decompress(), concatenate partial results in a way that should be more friendly to other Python implementations * Remove redundant comments in test_bz2 * Use 'while True:' instead of 'while 1:' | ||||
* | Issue #1625: BZ2File and bz2.decompress() now support multi-stream files. | Nadeem Vawda | 2011-05-26 | 1 | -13/+34 |
| | | | | Initial patch by Nir Aides. | ||||
* | Fix typo in bz2 module. | Nadeem Vawda | 2011-05-24 | 1 | -1/+1 |
| | |||||
* | Fix whitespace | Antoine Pitrou | 2011-04-03 | 1 | -2/+2 |
| | |||||
* | Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept | Antoine Pitrou | 2011-04-03 | 1 | -0/+392 |
file-like objects using a new `fileobj` constructor argument. Patch by Nadeem Vawda. |