From f7c19d5ab4d5e13f25054b546fc93cc467aab0e1 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 11 Apr 2019 01:07:07 +0200 Subject: menuconfig: Rename _try_set_locale() to try_set_locale() This function isn't defined at the module level. --- menuconfig.py | 4 ++-- 1 file 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)) -- cgit v1.2.3