diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-07 03:13:46 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-07 03:13:46 +0100 |
| commit | e216ebc62db7a23788a7a48e88fca3963f4711f3 (patch) | |
| tree | bb8f630decaa68b3f525489d7f8c0001e4db7f46 | |
| parent | fba2a11fd51ea53990706430023fae34d8876360 (diff) | |
Small simplification.
| -rw-r--r-- | kconfiglib.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 4d6c994..041deca 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -3232,13 +3232,12 @@ class Choice(Item, _HasVisibility): """Returns the mode of the choice. See the class documentation for an explanation of modes.""" minimum_mode = "n" if self.optional else "m" - mode = self.user_mode if self.user_mode is not None else minimum_mode mode = self.config._eval_min(mode, self._calc_visibility()) # Promote "m" to "y" for boolean choices if mode == "m" and self.type == BOOL: - mode = "y" + return "y" return mode |
