From c33fab233dae787a29963fa71546f5ae6b8f3990 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 13 Dec 2012 08:34:18 +0100 Subject: Rename Menu.get_depends_on_visibility() to Menu.get_visibility(). --- README.md | 3 ++- kconfiglib.py | 6 ++---- testsuite.py | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3ff0500..1d88a80 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ generated with Installation instructions for the Linux kernel (in the kernel root): -> $ git clone git://github.com/ulfalizer/Kconfiglib.git +> $ git clone git://github.com/ulfalizer/Kconfiglib.git > $ git am Kconfiglib/makefile.patch (Note: The directory name Kconfiglib/ is significant.) @@ -41,6 +41,7 @@ renamed as follows: * Symbol.is\_choice\_item() -> Symbol.is\_choice\_symbol() * Symbol.reset() -> Symbol.unset\_user\_value() * Config.reset() -> Config.unset\_user\_values() + * Menu.get\_get\_depends\_on\_visibility() -> Menu.get\_visibility() The test suite failures for the following Blackfin defconfigs on e.g. diff --git a/kconfiglib.py b/kconfiglib.py index 740802b..f8bc69d 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2580,9 +2580,7 @@ class Symbol(Item, _HasVisibility): wouldn't be safe. You should probably look at get_lower/upper_bound(), - get_assignable_values() and is_modifiable() before using this. Not sure - if it should even be public. - """ + get_assignable_values() and is_modifiable() before using this.""" return self._get_visibility() def get_parent(self): @@ -3002,7 +3000,7 @@ class Menu(Item): # Public interface # - def get_depends_on_visibility(self): + def get_visibility(self): """Returns the visibility the menu gets from 'depends on' conditions. This is propagated to subitems.""" return self.config._eval_expr(self.dep_expr) diff --git a/testsuite.py b/testsuite.py index e4cfc5e..ff2b96a 100644 --- a/testsuite.py +++ b/testsuite.py @@ -1091,7 +1091,7 @@ def test_call_all(conf): m.get_items() m.get_symbols(False) m.get_symbols(True) - m.get_depends_on_visibility() + m.get_visibility() m.get_visible_if_visibility() m.get_title() m.get_parent() -- cgit v1.2.3