diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-13 08:23:49 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-13 08:25:24 +0100 |
| commit | dfd0bf1dc9d46818e5e1ec3c432f2b764847dfe5 (patch) | |
| tree | bdddd5c694b4e80b2fe6a715db33426a14efcca7 /examples | |
| parent | 13f2ee99521fe4c472fc93ed40eb276e2017d937 (diff) | |
Rename some APIs to be more consistent and intuitive.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/allnoconfig.py | 2 | ||||
| -rw-r--r-- | examples/allyesconfig.py | 4 |
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") |
