summaryrefslogtreecommitdiff
path: root/examples/allyesconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-10-25 13:35:31 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2017-10-25 13:39:41 +0200
commit463cebd7f8bf26673732bf5afcd113ee5e2268b7 (patch)
treef29b3a987a49cf4135d0968c971fb259bd1594e8 /examples/allyesconfig.py
parentdd0e227216e247d2040cdd40bf7397702880cdc4 (diff)
Backup
Diffstat (limited to 'examples/allyesconfig.py')
-rw-r--r--examples/allyesconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/allyesconfig.py b/examples/allyesconfig.py
index 4847c05..32b302c 100644
--- a/examples/allyesconfig.py
+++ b/examples/allyesconfig.py
@@ -27,7 +27,7 @@ conf = Config(sys.argv[1])
# tree can be walked iteratively by using the parent pointers.
choices = []
-node = conf.top_menu
+node = conf.top_node
while 1:
if isinstance(node.item, Choice):
@@ -85,7 +85,7 @@ while 1:
# Does the choice have a default selection that we haven't already
# selected?
if selection is not None and \
- selection is not choice.user_value:
+ selection is not choice.user_selection:
# Yup, select it
selection.set_value("y")