summaryrefslogtreecommitdiffstats
path: root/Lib/re.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-09 21:57:55 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-09 21:57:55 (GMT)
commitbe9a4e5c855188cf146962483e6de942bf154d95 (patch)
treeeb157b3bf22214072f27e64244e0b7439c08e2a3 /Lib/re.py
parentee73a657455a908102379d3c9bc254676418e10c (diff)
downloadcpython-be9a4e5c855188cf146962483e6de942bf154d95.zip
cpython-be9a4e5c855188cf146962483e6de942bf154d95.tar.gz
cpython-be9a4e5c855188cf146962483e6de942bf154d95.tar.bz2
Issue #433028: Added support of modifier spans in regular expressions.
Diffstat (limited to 'Lib/re.py')
-rw-r--r--Lib/re.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/re.py b/Lib/re.py
index 661929e..b78da89 100644
--- a/Lib/re.py
+++ b/Lib/re.py
@@ -352,7 +352,7 @@ class Scanner:
for phrase, action in lexicon:
gid = s.opengroup()
p.append(sre_parse.SubPattern(s, [
- (SUBPATTERN, (gid, sre_parse.parse(phrase, flags))),
+ (SUBPATTERN, (gid, 0, 0, sre_parse.parse(phrase, flags))),
]))
s.closegroup(gid, p[-1])
p = sre_parse.SubPattern(s, [(BRANCH, (None, p))])