summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-02-09 02:23:15 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-02-09 02:43:04 +0100
commit30ff778e52d2cd74ce624348c44651982282f07d (patch)
treecf5a398679eaab5ed1dd3e769568703f3f6a49d4 /examples
parentfb18dea585742f11edf3f20017966698239e7a81 (diff)
oldconfig.py style nits
Diffstat (limited to 'examples')
-rw-r--r--examples/oldconfig.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/oldconfig.py b/examples/oldconfig.py
index d8b21c7..722c9e4 100644
--- a/examples/oldconfig.py
+++ b/examples/oldconfig.py
@@ -245,7 +245,7 @@ def do_oldconfig_for_node(node):
for i, sym in enumerate(options, 1):
print("{} {}. {} ({})".format(
- ">" if choice.selection is sym else " ",
+ ">" if sym is choice.selection else " ",
i,
# Assume people don't define choice symbols with multiple
# prompts. That generates a warning anyway.
@@ -286,9 +286,9 @@ def do_oldconfig_for_node(node):
# do additional passes, if the reason that it was considered new was
# that it had new visible choice symbols.
#
- # Only giving visible choice symbols the user value n means we will prompt
- # for the choice again if later user selections make more new choice
- # symbols visible, which is correct.
+ # Only giving visible choice symbols the user value n means we will
+ # prompt for the choice again if later user selections make more new
+ # choice symbols visible, which is correct.
for sym in choice.syms:
if sym is not choice.user_selection and sym.visibility:
sym.set_value(0)