From cec15de1755d89963537ea0c8dacd94118ce2ff3 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 13 Dec 2012 08:47:50 +0100 Subject: Add Comment.get_visibility(). Omission. --- kconfiglib.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'kconfiglib.py') diff --git a/kconfiglib.py b/kconfiglib.py index f8bc69d..c790033 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -3001,8 +3001,8 @@ class Menu(Item): # def get_visibility(self): - """Returns the visibility the menu gets from 'depends on' conditions. - This is propagated to subitems.""" + """Returns the visibility of the menu. This also affects the visibility + of subitems. See also Symbol.get_visibility().""" return self.config._eval_expr(self.dep_expr) def get_visible_if_visibility(self): @@ -3409,6 +3409,11 @@ class Comment(Item): # Public interface # + def get_visibility(self): + """Returns the visibility of the comment. See also + Symbol.get_visibility().""" + return self.config._eval_expr(self.dep_expr) + def get_text(self): """Returns the text of the comment.""" return self.text -- cgit v1.2.3