summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2015-06-19 06:13:57 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2015-06-19 06:15:04 +0200
commit813b66a3bc1ad6ee88f91c42093e33a9e93aefd4 (patch)
treead7407baaed682a4330b68bea09c9c55e60045fc /kconfiglib.py
parent3eec17929790cadbd33d390cc2360836021178c7 (diff)
Make the _parse_expr() docstring more informative.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 99cb8b0..ad6f6fb 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -781,9 +781,11 @@ class Config(object):
def _parse_expr(self, feed, cur_item, line, filename=None, linenr=None,
transform_m=True):
- """Parse an expression from the tokens in 'feed' using a simple
- top-down approach. The result has the form (<operator>, <list
- containing parsed operands>).
+ """Parses an expression from the tokens in 'feed' using a simple
+ top-down approach. The result has the form
+ '(<operator>, [<parsed operands>])', where <operator> is e.g.
+ kconfiglib.AND. If there is only one operand (i.e., no && or ||), then
+ the operand is returned directly. This also goes for subexpressions.
feed: _Feed instance containing the tokens for the expression.