commit | c8bf95cfc58d92c365abd4c958feb15f872b2a29 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Fri Sep 20 21:24:39 2013 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Fri Sep 20 21:24:39 2013 +0300 |
tree | 5e7bf254c839c1b018a01f52c5875fca8cd54525 | |
parent | 2a97cee5eda632a7737bf01608c0f6638cd3fea0 [diff] [blame] |
Issue #18050: Fixed an incompatibility of the re module with Python 3.3.0 binaries.
diff --git a/Lib/sre_constants.py b/Lib/sre_constants.py index 5898d54..3fb5eac 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?