summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-02-25 07:39:28 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-02-25 07:39:28 +0100
commitbefb4129f09fa5c1a6e29dbeeb26feeaf6669eda (patch)
treeaa6f070a31447aae61eb5cad7c065af6e6c158b5 /examples
parent9063061e4886cdddba0059309ed478aaef20f017 (diff)
menuconfig.py: More style and comment nits
- Use generator expression rather than list comprehension - Fix dubious English
Diffstat (limited to 'examples')
-rw-r--r--examples/menuconfig.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/menuconfig.py b/examples/menuconfig.py
index 532912a..f026e74 100644
--- a/examples/menuconfig.py
+++ b/examples/menuconfig.py
@@ -168,8 +168,8 @@ def value_str(sc):
def node_str(node):
"""
Returns the complete menu entry text for a menu node, or "" for invisible
- menu nodes. Invisible menu nodes are those that lack a prompt or don't have
- a satisfied prompt condition.
+ menu nodes. Invisible menu nodes are those that lack a prompt or that do
+ not have a satisfied prompt condition.
Example return value: "[*] Bool symbol (BOOL)"
@@ -254,7 +254,7 @@ def get_value_from_user(sc):
prompt = "Value for {}".format(sc.name)
if sc.type in (BOOL, TRISTATE):
prompt += " (available: {})" \
- .format(", ".join([TRI_TO_STR[val] for val in sc.assignable]))
+ .format(", ".join(TRI_TO_STR[val] for val in sc.assignable))
prompt += ": "
val = input(prompt)