summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.11.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-05-25 20:04:06 (GMT)
committerGitHub <noreply@github.com>2022-05-25 20:04:06 (GMT)
commitbf58cd01b313837511d9399f18588ccd2e5dc5a9 (patch)
treea80d7beab81640cee2c4ee77ffff6f179d2fa2d2 /Doc/whatsnew/3.11.rst
parent854db1a6061c83d80a3f1e4e87f043b521719920 (diff)
downloadcpython-bf58cd01b313837511d9399f18588ccd2e5dc5a9.zip
cpython-bf58cd01b313837511d9399f18588ccd2e5dc5a9.tar.gz
cpython-bf58cd01b313837511d9399f18588ccd2e5dc5a9.tar.bz2
gh-90817: Deprecate explicitly locale.resetlocale() (#93196)
The function was already deprecated in Python 3.11 since it calls locale.getdefaultlocale() which was deprecated in Python 3.11.
Diffstat (limited to 'Doc/whatsnew/3.11.rst')
-rw-r--r--Doc/whatsnew/3.11.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index c7ff6ca..24d1343 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -1221,7 +1221,11 @@ Deprecated
removed in Python 3.13. Use :func:`locale.setlocale`,
:func:`locale.getpreferredencoding(False) <locale.getpreferredencoding>` and
:func:`locale.getlocale` functions instead.
- (Contributed by Victor Stinner in :issue:`46659`.)
+ (Contributed by Victor Stinner in :gh:`90817`.)
+
+* The :func:`locale.resetlocale` function is deprecated and will be
+ removed in Python 3.13. Use ``locale.setlocale(locale.LC_ALL, "")`` instead.
+ (Contributed by Victor Stinner in :gh:`90817`.)
* The :mod:`asynchat`, :mod:`asyncore` and :mod:`smtpd` modules have been
deprecated since at least Python 3.6. Their documentation and deprecation