summaryrefslogtreecommitdiff
path: root/menuconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'menuconfig.py')
-rwxr-xr-xmenuconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/menuconfig.py b/menuconfig.py
index 1bb8e41..e6adc6f 100755
--- a/menuconfig.py
+++ b/menuconfig.py
@@ -3181,7 +3181,7 @@ def _convert_c_lc_ctype_to_utf8():
# supported from some quick testing either. Play it safe.
return
- def _try_set_locale(loc):
+ def try_set_locale(loc):
try:
locale.setlocale(locale.LC_CTYPE, loc)
return True
@@ -3193,7 +3193,7 @@ def _convert_c_lc_ctype_to_utf8():
# This list was taken from the PEP 538 implementation in the CPython
# code, in Python/pylifecycle.c
for loc in "C.UTF-8", "C.utf8", "UTF-8":
- if _try_set_locale(loc):
+ if try_set_locale(loc):
print("Note: Your environment is configured to use ASCII. To "
"avoid Unicode issues, LC_CTYPE was changed from the "
"C locale to the {} locale.".format(loc))