diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-04-10 18:05:27 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-04-10 18:05:27 +0200 |
| commit | d72d509bbfe4ff0c976a78fe8c8065430480d3c5 (patch) | |
| tree | 5284fb4a24d9056c0fa96180546977722f745996 /menuconfig.py | |
| parent | 27f6ae4b2393b5560749cdae8183f771ac20b61a (diff) | |
menuconfig: Rename _check_validity() to _check_valid()
Bit shorter, as clear.
Diffstat (limited to 'menuconfig.py')
| -rwxr-xr-x | menuconfig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/menuconfig.py b/menuconfig.py index 4c349a0..1bb8e41 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -1560,7 +1560,7 @@ def _change_node(node): if sc.type == HEX and not s.startswith(("0x", "0X")): s = "0x" + s - if _check_validity(sc, s): + if _check_valid(sc, s): _set_val(sc, s) break @@ -3009,7 +3009,7 @@ def _is_y_mode_choice_sym(item): return isinstance(item, Symbol) and item.choice and item.visibility == 2 -def _check_validity(sym, s): +def _check_valid(sym, s): # Returns True if the string 's' is a well-formed value for 'sym'. # Otherwise, displays an error and returns False. |
