From eedfb571d08347c5c6bf35afa87bc7538686455e Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 16 Jun 2015 14:51:35 +0200 Subject: 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. --- kconfiglib.py | 6 ++---- 1 file 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: -- cgit v1.2.3