summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py9
1 files changed, 7 insertions, 2 deletions
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