summaryrefslogtreecommitdiffstats
path: root/Lib/locale.py
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2022-04-14 07:00:35 (GMT)
committerGitHub <noreply@github.com>2022-04-14 07:00:35 (GMT)
commit13b17e2a0a56d506d62a0bf2774e3deb4cbaeb72 (patch)
tree506c197765d1aa1f14cfe51134db7088288fd83c /Lib/locale.py
parent7b87e8af0cb8df0d76e8ab18a9b12affb4526103 (diff)
downloadcpython-13b17e2a0a56d506d62a0bf2774e3deb4cbaeb72.zip
cpython-13b17e2a0a56d506d62a0bf2774e3deb4cbaeb72.tar.gz
cpython-13b17e2a0a56d506d62a0bf2774e3deb4cbaeb72.tar.bz2
gh-91156: Fix `encoding="locale"` in UTF-8 mode (GH-70056)
Diffstat (limited to 'Lib/locale.py')
-rw-r--r--Lib/locale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index 496cc80..170e5ee 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -557,7 +557,7 @@ def getdefaultlocale(envvars=('LC_ALL', 'LC_CTYPE', 'LANG', 'LANGUAGE')):
import warnings
warnings.warn(
- "Use setlocale(), getpreferredencoding(False) and getlocale() instead",
+ "Use setlocale(), getencoding() and getlocale() instead",
DeprecationWarning, stacklevel=2
)