summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-01-16 14:33:30 (GMT)
committerGitHub <noreply@github.com>2020-01-16 14:33:30 (GMT)
commit9baf242fc733ab8a52a0b6201d95c6fdb8251745 (patch)
treef0ae86e8fcf1e85373a3fe8aba790e6266950359 /Misc
parentc5b79003f5fe6aa28a2a028680367839ba8677db (diff)
downloadcpython-9baf242fc733ab8a52a0b6201d95c6fdb8251745.zip
cpython-9baf242fc733ab8a52a0b6201d95c6fdb8251745.tar.gz
cpython-9baf242fc733ab8a52a0b6201d95c6fdb8251745.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-01-16-11-24-00.bpo-39357.bCwx-h.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-01-16-11-24-00.bpo-39357.bCwx-h.rst b/Misc/NEWS.d/next/Library/2020-01-16-11-24-00.bpo-39357.bCwx-h.rst
new file mode 100644
index 0000000..a90802c
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-01-16-11-24-00.bpo-39357.bCwx-h.rst
@@ -0,0 +1,4 @@
+Remove the *buffering* parameter of :class:`bz2.BZ2File`. Since Python 3.0, it
+was ignored and using it was emitting :exc:`DeprecationWarning`. Pass an open
+file object, to control how the file is opened. The *compresslevel* parameter
+becomes keyword-only.