diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-04-11 01:07:07 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-04-11 01:07:07 +0200 |
| commit | f7c19d5ab4d5e13f25054b546fc93cc467aab0e1 (patch) | |
| tree | d3897e4b3d220d03b357e54948bef75bf2244030 | |
| parent | 75e997ab2f983523e396a49fe8c5b87395ded384 (diff) | |
menuconfig: Rename _try_set_locale() to try_set_locale()
This function isn't defined at the module level.
| -rwxr-xr-x | menuconfig.py | 4 |
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)) |
