summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pyparsing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyparsing.py b/src/pyparsing.py
index 576ddf6..8a02b63 100644
--- a/src/pyparsing.py
+++ b/src/pyparsing.py
@@ -1834,7 +1834,7 @@ class ParserElement(object):
warnings.warn("Cannot combine element of type %s with ParserElement" % type(other),
SyntaxWarning, stacklevel=2)
return None
- return And( [ self, And._ErrorStop(), other ] )
+ return self + And._ErrorStop() + other
def __rsub__(self, other ):
"""