diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-16 14:47:47 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-16 14:47:47 (GMT) |
commit | 70ca0210e8958d2665541ddd38fce2965075674e (patch) | |
tree | f24e31538d932eebe73bdb07079096cabeb0e50a /Lib/sre_compile.py | |
parent | b19ed57d8d75b1183193558a9880db44b95157b3 (diff) | |
download | cpython-70ca0210e8958d2665541ddd38fce2965075674e.zip cpython-70ca0210e8958d2665541ddd38fce2965075674e.tar.gz cpython-70ca0210e8958d2665541ddd38fce2965075674e.tar.bz2 |
Issue #13169: The maximal repetition number in a regular expression has been
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
Diffstat (limited to 'Lib/sre_compile.py')
-rw-r--r-- | Lib/sre_compile.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index f52ea01..46eac9c 100644 --- a/Lib/sre_compile.py +++ b/Lib/sre_compile.py @@ -13,6 +13,7 @@ import _sre, sys import sre_parse from sre_constants import * +from _sre import MAXREPEAT assert _sre.MAGIC == MAGIC, "SRE module mismatch" |