summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-02-25 07:30:23 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-02-25 07:30:23 +0100
commit9063061e4886cdddba0059309ed478aaef20f017 (patch)
treeb0ffb5df80607bb10b49354db01061786061bcc9
parentedffd52295541c8908810a7c5dd5cdc3fe4d6f9a (diff)
menuconfig.py: Style and comment nits
-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]