aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/locale.py
diff options
context:
space:
mode:
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 496cc803c88..170e5eea45b 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
)