summaryrefslogtreecommitdiff
path: root/examples/menuconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/menuconfig.py')
-rw-r--r--examples/menuconfig.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/menuconfig.py b/examples/menuconfig.py
index c4f0057..532912a 100644
--- a/examples/menuconfig.py
+++ b/examples/menuconfig.py
@@ -143,14 +143,12 @@ def value_str(sc):
# BOOL or TRISTATE
- # The choice mode acts as an upper bound on the visibility of choice
- # symbols, so we can check the choice symbols' own visibility to see if the
- # choice is in y mode
+ # The choice mode is an upper bound on the visibility of choice symbols, so
+ # we can check the choice symbols' own visibility to see if the choice is
+ # in y mode
if isinstance(sc, Symbol) and sc.choice and sc.visibility == 2:
# For choices in y mode, print '-->' next to the selected symbol
- if sc.choice.selection is sc:
- return "-->"
- return " "
+ return "-->" if sc.choice.selection is sc else " "
tri_val_str = (" ", "M", "*")[sc.tri_value]