From 5be5bfbc401a4e3021198145e8b7c9a70f0fae5c Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 1 Jul 2019 22:26:35 +0200 Subject: Rename Choice._get_selection_from_defaults() to _selection_from_defaults() Shorter and still clear. --- kconfiglib.py | 6 +++--- 1 file 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 -- cgit v1.2.3