From 35996e28ed2bb6e0cd6226e1580cfef2a958d3df Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 23 Jun 2015 05:23:41 +0200 Subject: Add docstring to _expr_val_str(). --- kconfiglib.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'kconfiglib.py') 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 -- cgit v1.2.3