summaryrefslogtreecommitdiff
path: root/Lib/sre_compile.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-16 16:54:33 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-16 16:54:33 +0200
commita0eb80999538febe046164bae541d3f07b899dfb (patch)
tree05b2bdfb56f6ef914c35602f5b4813f645f7abb7 /Lib/sre_compile.py
parent293ab9728aafc86e33b268049ce598dccf56ff51 (diff)
parent70ca0210e8958d2665541ddd38fce2965075674e (diff)
downloadcpython-git-a0eb80999538febe046164bae541d3f07b899dfb.tar.gz
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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
index 75f3a093fe..90e3a25f1a 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"