summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-07-01 22:26:35 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-07-01 23:48:38 +0200
commit5be5bfbc401a4e3021198145e8b7c9a70f0fae5c (patch)
tree5eef173d9ba9b7a72472256a79368bcd1cbc4834 /kconfiglib.py
parenta65c52be7678cdf70ff6ab2a7f79d40dbed90e4d (diff)
Rename Choice._get_selection_from_defaults() to _selection_from_defaults()
Shorter and still clear.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 0e16373..2c26d98 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1613,7 +1613,7 @@ class Kconfig(object):
# to n or the symbol to m in those cases).
if sym.choice and \
not sym.choice.is_optional and \
- sym.choice._get_selection_from_defaults() is sym and \
+ sym.choice._selection_from_defaults() is sym and \
sym.orig_type is BOOL and \
sym.tri_value == 2:
continue
@@ -5275,9 +5275,9 @@ class Choice(object):
return self.user_selection
# Otherwise, check if we have a default
- return self._get_selection_from_defaults()
+ return self._selection_from_defaults()
- def _get_selection_from_defaults(self):
+ def _selection_from_defaults(self):
# Check if we have a default
for sym, cond in self.defaults:
# The default symbol must be visible too