diff options
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | kconfiglib.py | 6 | ||||
| -rw-r--r-- | testsuite.py | 2 |
3 files changed, 5 insertions, 6 deletions
@@ -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() |
