summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2018-01-10 14:53:20 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2018-01-10 14:53:20 +0100
commit11c4d4713ee1f85a8ad893067c3312e60307cffe (patch)
tree8c2d5df90abab3b8cf5c5780f74fe2fab2846fa3
parentb8ef821e9e059aa542f31f4c1da9388ca55842f6 (diff)
regex: always include operator in BinOp/Compare patterns
-rw-r--r--regex/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/regex/__init__.py b/regex/__init__.py
index 7232349..bf96587 100644
--- a/regex/__init__.py
+++ b/regex/__init__.py
@@ -79,7 +79,7 @@ def make_pattern(tree, nodes):
children = []
if subpats[0]:
children += [subpats[0]]
- children += [tree[1]]
+ children += [tree[1]]
if subpats[2]:
children += [subpats[2]]
pat = Tree(label, children)