This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: bz2: Remove deprecated buffering parameter of bz2.BZ2File
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: vstinner, xtreak
Priority: normal Keywords: patch

Created on 2020-01-16 10:22 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 18028 merged vstinner, 2020-01-16 10:36
PR 18036 merged vstinner, 2020-01-17 12:03
Messages (6)
msg360114 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-01-16 10:22
The "buffering" parameter of bz2.BZ2File is deprecated for 12 years.

Using it was emitting a DeprecationWarning since Python 3.0.

Attached PR removes it.
msg360125 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-01-16 14:33
New changeset 9baf242fc733ab8a52a0b6201d95c6fdb8251745 by Victor Stinner in branch 'master':
bpo-39357: Remove buffering parameter of bz2.BZ2File (GH-18028)
https://github.com/python/cpython/commit/9baf242fc733ab8a52a0b6201d95c6fdb8251745
msg360168 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2020-01-17 10:27
https://github.com/python/cpython/blob/9baf242fc733ab8a52a0b6201d95c6fdb8251745/Lib/bz2.py#L50 contains similar reference about buffering parameter deprecation like bz2.rst which could also be removed. Thanks.
msg360180 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-01-17 12:50
New changeset 10fd6b2b9f0aeb8f5a0ce4cb4b9f21f942d39a71 by Victor Stinner in branch 'master':
bpo-39357: Update bz2 docstring: remove buffering (GH-18036)
https://github.com/python/cpython/commit/10fd6b2b9f0aeb8f5a0ce4cb4b9f21f942d39a71
msg360181 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-01-17 12:50
Thanks Karthikeyan, I forgot about the docstring.
msg360183 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2020-01-17 12:58
Thanks for the fix Victor :)
History
Date User Action Args
2022-04-11 14:59:25adminsetgithub: 83538
2020-01-17 12:58:51xtreaksetmessages: + msg360183
2020-01-17 12:50:58vstinnersetmessages: + msg360181
2020-01-17 12:50:43vstinnersetmessages: + msg360180
2020-01-17 12:03:01vstinnersetpull_requests: + pull_request17434
2020-01-17 10:27:36xtreaksetnosy: + xtreak
messages: + msg360168
2020-01-16 14:33:45vstinnersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-01-16 14:33:34vstinnersetmessages: + msg360125
2020-01-16 10:36:10vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request17424
2020-01-16 10:22:45vstinnercreate