summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.12.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/whatsnew/3.12.rst')
-rw-r--r--Doc/whatsnew/3.12.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 8526a13..6257901 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -218,6 +218,12 @@ Removed
use :func:`os.urandom` or :func:`ssl.RAND_bytes` instead.
(Contributed by Victor Stinner in :gh:`94199`.)
+* :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.
+ (Contributed by Victor Stinner in :gh:`94196`.)
+
Porting to Python 3.12
======================