summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-24 09:59:32 (GMT)
committerGitHub <noreply@github.com>2022-06-24 09:59:32 (GMT)
commitd3a27e4c9339d787f2eb3e68fd3b12e303cb4a42 (patch)
treeea345636f50dc9dd7f2d4d343ba2c8c0874c248b /Misc
parentd435a18c537a62a89a70005885e6e09f58997d8a (diff)
downloadcpython-d3a27e4c9339d787f2eb3e68fd3b12e303cb4a42.zip
cpython-d3a27e4c9339d787f2eb3e68fd3b12e303cb4a42.tar.gz
cpython-d3a27e4c9339d787f2eb3e68fd3b12e303cb4a42.tar.bz2
gh-94196: Remove gzip.GzipFile.filename attribute (#94197)
gzip: Remove the filename attribute of gzip.GzipFile, deprecated since Python 2.6, use the name attribute instead. In write mode, the filename attribute added '.gz' file extension if it was not present.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-06-24-09-41-41.gh-issue-94196.r2KyfS.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-06-24-09-41-41.gh-issue-94196.r2KyfS.rst b/Misc/NEWS.d/next/Library/2022-06-24-09-41-41.gh-issue-94196.r2KyfS.rst
new file mode 100644
index 0000000..e22776f
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-06-24-09-41-41.gh-issue-94196.r2KyfS.rst
@@ -0,0 +1,4 @@
+:mod:`gzip`: Remove the ``filename`` attribute of :class:`gzip.GzipFile`,
+deprecated since Python 2.6, use the :attr:`~gzip.GzipFile.name` attribute
+instead. In write mode, the ``filename`` attribute added ``'.gz'`` file
+extension if it was not present. Patch by Victor Stinner.