diff options
author | Inada Naoki <songofacandy@gmail.com> | 2022-04-22 01:39:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 01:39:24 (GMT) |
commit | 1317b70f89606bd14597116b7ab68a968ea6c017 (patch) | |
tree | 84cefd08afe31ffeb3f7a1f7ad1c9d2688abb168 /Lib/test/pythoninfo.py | |
parent | efe7fd4170bb809ed46cac35c6a9007d5b794e7e (diff) | |
download | cpython-1317b70f89606bd14597116b7ab68a968ea6c017.zip cpython-1317b70f89606bd14597116b7ab68a968ea6c017.tar.gz cpython-1317b70f89606bd14597116b7ab68a968ea6c017.tar.bz2 |
gh-91156: Use `locale.getencoding()` instead of getpreferredencoding (GH-91732)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Lib/test/pythoninfo.py')
-rw-r--r-- | Lib/test/pythoninfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index b00830c..39301e6 100644 --- a/Lib/test/pythoninfo.py +++ b/Lib/test/pythoninfo.py @@ -155,7 +155,7 @@ def collect_platform(info_add): def collect_locale(info_add): import locale - info_add('locale.encoding', locale.getpreferredencoding(False)) + info_add('locale.getencoding', locale.getencoding()) def collect_builtins(info_add): |