summaryrefslogtreecommitdiffstats
path: root/Lib/sre_constants.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/sre_constants.py')
-rw-r--r--Lib/sre_constants.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/sre_constants.py b/Lib/sre_constants.py
index b0175e7..69224e2 100644
--- a/Lib/sre_constants.py
+++ b/Lib/sre_constants.py
@@ -15,7 +15,11 @@
MAGIC = 20031017
-from _sre import MAXREPEAT
+try:
+ from _sre import MAXREPEAT
+except ImportError:
+ import _sre
+ MAXREPEAT = _sre.MAXREPEAT = 65535
# SRE standard exception (access as sre.error)
# should this really be here?