From 30ff778e52d2cd74ce624348c44651982282f07d Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 9 Feb 2018 02:23:15 +0100 Subject: oldconfig.py style nits --- examples/oldconfig.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') 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) -- cgit v1.2.3