summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-24 06:46:53 (GMT)
committerGitHub <noreply@github.com>2022-06-24 06:46:53 (GMT)
commit6e33ba114ffb47505fec59674c5cce5eb6476f76 (patch)
tree3682df72eda311bea3bb61f8cc59d50a21e514f5 /Doc
parent5075e81c519af5cf3fd9d356d483b0c9df6b116a (diff)
downloadcpython-6e33ba114ffb47505fec59674c5cce5eb6476f76.zip
cpython-6e33ba114ffb47505fec59674c5cce5eb6476f76.tar.gz
cpython-6e33ba114ffb47505fec59674c5cce5eb6476f76.tar.bz2
gh-94169: Remove deprecated io.OpenWrapper (#94170)
Remove io.OpenWrapper and _pyio.OpenWrapper, deprecated in Python 3.10: just use :func:`open` instead. The open() (io.open()) function is a built-in function. Since Python 3.10, _pyio.open() is also a static method.
Diffstat (limited to 'Doc')
-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 8dde135..52e4d7e 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -208,6 +208,12 @@ Removed
(and corresponding ``EXPERIMENTAL_ISOLATED_SUBINTERPRETERS``)
have been removed.
+* Remove ``io.OpenWrapper`` and ``_pyio.OpenWrapper``, deprecated in Python
+ 3.10: just use :func:`open` instead. The :func:`open` (:func:`io.open`)
+ function is a built-in function. Since Python 3.10, :func:`_pyio.open` is
+ also a static method.
+ (Contributed by Victor Stinner in :gh:`94169`.)
+
Porting to Python 3.12
======================