diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-16 14:51:35 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-16 14:56:06 +0200 |
| commit | eedfb571d08347c5c6bf35afa87bc7538686455e (patch) | |
| tree | 3262a4ecb548375cbdd8709ee60f4d9ba2e36b78 | |
| parent | ba67e601dbf471fbf43972e4813305770a8ee5e0 (diff) | |
Make _make_and/_or() comments more accurate.
We're never updating nodes here, since the original expressions should
be preserved. We're just trying to avoid creating redundant nodes.
| -rw-r--r-- | kconfiglib.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index d3fe436..2296211 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -3194,8 +3194,7 @@ def _make_and(e1, e2): if e2 is None or e2 == "y": return e1 - # Prefer to merge/update argument list if possible instead of creating - # a new AND node + # Prefer to merge argument lists if possible to reduce the number of nodes if isinstance(e1, tuple) and e1[0] == AND: if isinstance(e2, tuple) and e2[0] == AND: @@ -3219,8 +3218,7 @@ def _make_or(e1, e2): if e1 == "n": return e2 - # Prefer to merge/update argument list if possible instead of creating - # a new OR node + # Prefer to merge argument lists if possible to reduce the number of nodes if isinstance(e1, tuple) and e1[0] == OR: if isinstance(e2, tuple) and e2[0] == OR: |
