diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-02-25 07:30:23 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-02-25 07:30:23 +0100 |
| commit | 9063061e4886cdddba0059309ed478aaef20f017 (patch) | |
| tree | b0ffb5df80607bb10b49354db01061786061bcc9 | |
| parent | edffd52295541c8908810a7c5dd5cdc3fe4d6f9a (diff) | |
menuconfig.py: Style and comment nits
| -rw-r--r-- | examples/menuconfig.py | 10 |
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] |
