From befb4129f09fa5c1a6e29dbeeb26feeaf6669eda Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 25 Feb 2018 07:39:28 +0100 Subject: menuconfig.py: More style and comment nits - Use generator expression rather than list comprehension - Fix dubious English --- examples/menuconfig.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') 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) -- cgit v1.2.3