summaryrefslogtreecommitdiff
path: root/Lib/sre_compile.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-29 22:49:23 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-29 22:49:23 +0300
commit829b3cdf07e06cd0bd079a3080c8a85019433c1b (patch)
tree4541f61ccf1032a165ec20382cab5ccd8864f200 /Lib/sre_compile.py
parent73293efee5a03b7f349ea436d9a4b44c0a7e01e1 (diff)
downloadcpython-829b3cdf07e06cd0bd079a3080c8a85019433c1b.tar.gz
Issue #22437: Number of capturing groups in regular expression is no longer
limited by 100.
Diffstat (limited to 'Lib/sre_compile.py')
-rw-r--r--Lib/sre_compile.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
index c6860b5bda..d4d129b674 100644
--- a/Lib/sre_compile.py
+++ b/Lib/sre_compile.py
@@ -470,12 +470,6 @@ def compile(p, flags=0):
# print code
- # XXX: <fl> get rid of this limitation!
- if p.pattern.groups > 100:
- raise AssertionError(
- "sorry, but this version only supports 100 named groups"
- )
-
# map in either direction
groupindex = p.pattern.groupdict
indexgroup = [None] * p.pattern.groups