]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39357: Remove buffering parameter of bz2.BZ2File (GH-18028)
authorVictor Stinner <vstinner@python.org>
Thu, 16 Jan 2020 14:33:30 +0000 (15:33 +0100)
committerGitHub <noreply@github.com>
Thu, 16 Jan 2020 14:33:30 +0000 (15:33 +0100)
commit9baf242fc733ab8a52a0b6201d95c6fdb8251745
treef0ae86e8fcf1e85373a3fe8aba790e6266950359
parentc5b79003f5fe6aa28a2a028680367839ba8677db
bpo-39357: Remove buffering parameter of bz2.BZ2File (GH-18028)

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.
Doc/library/bz2.rst
Doc/whatsnew/3.9.rst
Lib/bz2.py
Lib/test/test_bz2.py
Misc/NEWS.d/next/Library/2020-01-16-11-24-00.bpo-39357.bCwx-h.rst [new file with mode: 0644]