summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-05 06:46:19 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-05 06:46:19 +0100
commit182772455a18e6af38f0935a984f4ef1bdfc9221 (patch)
tree7fba0ccb3def0decd70f62e4d5dd014754421d87
parentf39549271523897d52e4a91f958bf7b397fa321f (diff)
Simplify allnoconfig.py choice handling
Don't need to handle them at all now that .assignable doesn't claim that choice symbols in y-mode choices can be set to n. 20/20 hindsight.
-rw-r--r--examples/allnoconfig.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/allnoconfig.py b/examples/allnoconfig.py
index 3b7fd31..467f681 100644
--- a/examples/allnoconfig.py
+++ b/examples/allnoconfig.py
@@ -15,17 +15,16 @@ def do_allnoconfig(node):
global changed
# Walk the tree of menu nodes. You can imagine this as going down/into menu
- # entries in the menuconfig interface, setting each to 'n' (or the lowest
+ # entries in the menuconfig interface, setting each to n (or the lowest
# assignable value).
while node is not None:
if isinstance(node.item, Symbol):
sym = node.item
- # Is the symbol a non-choice, non-allnoconfig_y symbol that can be
- # set to a lower value than its current value?
- if (sym.choice is None and
- not sym.is_allnoconfig_y and
+ # Is the symbol a non-allnoconfig_y symbol that can be set to a
+ # lower value than its current value?
+ if (not sym.is_allnoconfig_y and
sym.assignable and
sym.assignable[0] < sym.tri_value):