summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-22 21:06:43 (GMT)
committerGitHub <noreply@github.com>2022-02-22 21:06:43 (GMT)
commitb899126094731bc49fecb61f2c1b7557d74ca839 (patch)
tree0fcb5dbe42994f32e7caf03514cbfd11fdca825b /Misc
parentccbe8045faf6e63d36229ea4e1b9298572cda126 (diff)
downloadcpython-b899126094731bc49fecb61f2c1b7557d74ca839.zip
cpython-b899126094731bc49fecb61f2c1b7557d74ca839.tar.gz
cpython-b899126094731bc49fecb61f2c1b7557d74ca839.tar.bz2
bpo-46659: Deprecate locale.getdefaultlocale() (GH-31206)
The locale.getdefaultlocale() function is deprecated and will be removed in Python 3.13. Use locale.setlocale(), locale.getpreferredencoding(False) and locale.getlocale() functions instead.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-02-06-17-57-45.bpo-46659.zTmkoQ.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-02-06-17-57-45.bpo-46659.zTmkoQ.rst b/Misc/NEWS.d/next/Library/2022-02-06-17-57-45.bpo-46659.zTmkoQ.rst
new file mode 100644
index 0000000..6fd9a53
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-02-06-17-57-45.bpo-46659.zTmkoQ.rst
@@ -0,0 +1,4 @@
+The :func:`locale.getdefaultlocale` function is deprecated and will be removed
+in Python 3.13. Use :func:`locale.setlocale`,
+:func:`locale.getpreferredencoding(False) <locale.getpreferredencoding>` and
+:func:`locale.getlocale` functions instead. Patch by Victor Stinner.