summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/allnoconfig.py2
-rw-r--r--examples/allyesconfig.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/allnoconfig.py b/examples/allnoconfig.py
index 271751b..d017355 100644
--- a/examples/allnoconfig.py
+++ b/examples/allnoconfig.py
@@ -15,7 +15,7 @@ while not done:
for sym in conf:
# Choices take care of themselves for allnoconfig, so we only need to
# worry about non-choice symbols
- if not sym.is_choice_item():
+ if not sym.is_choice_symbol():
# If we can assign a value to the symbol (where "n", "m" and "y"
# are ordered from lowest to highest), then assign the lowest
# value. lower_bound() returns None for symbols whose values cannot
diff --git a/examples/allyesconfig.py b/examples/allyesconfig.py
index 1281015..906343c 100644
--- a/examples/allyesconfig.py
+++ b/examples/allyesconfig.py
@@ -21,7 +21,7 @@ conf = kconfiglib.Config(sys.argv[1])
# Get a list of all symbols that are not in choices
non_choice_syms = [sym for sym in conf.get_symbols() if
- not sym.is_choice_item()]
+ not sym.is_choice_symbol()]
done = False
while not done:
@@ -56,7 +56,7 @@ while not done:
# "m" for example.
elif choice.get_visibility() == "m":
- for sym in choice.get_actual_items():
+ for sym in choice.get_symbols():
if sym.get_value() != "m" and \
sym.get_upper_bound() != "n":
sym.set_user_value("m")