summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kconfiglib.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 94eca04..ef2c4c8 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1573,8 +1573,13 @@ class Config(object):
def _expr_val_str(self, expr, no_value_str="(none)",
get_val_instead_of_eval=False):
- # Since values are valid expressions, _expr_to_str() will get a nice
- # string representation for those as well.
+ """Printing helper. Returns a string with 'expr' and its value.
+
+ no_value_str: String to return when 'expr' is missing (None).
+
+ get_val_instead_of_eval: Assume 'expr' is a symbol or string (constant
+ symbol) and get its value directly instead of evaluating it to a
+ tristate value."""
if expr is None:
return no_value_str