diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-23 05:23:41 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-23 05:25:42 +0200 |
| commit | 35996e28ed2bb6e0cd6226e1580cfef2a958d3df (patch) | |
| tree | c75f34f9df72599e7ac39e54e5b5c9408a70862b /kconfiglib.py | |
| parent | bc23cc6c7db853770f7890284998eee0812e11cf (diff) | |
Add docstring to _expr_val_str().
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 9 |
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 |
