From 9063061e4886cdddba0059309ed478aaef20f017 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 25 Feb 2018 07:30:23 +0100 Subject: menuconfig.py: Style and comment nits --- examples/menuconfig.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'examples') 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] -- cgit v1.2.3