diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2001-01-15 12:46:09 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2001-01-15 12:46:09 (GMT) |
commit | b35ffc0417a0861ccf466c0503c4151725a0267a (patch) | |
tree | be88aec0ae5d7988418b45a29b90dda7a8c37d0c /Lib/sre_compile.py | |
parent | 142297ac9204042743c72cee04ec501236c7986d (diff) | |
download | cpython-b35ffc0417a0861ccf466c0503c4151725a0267a.zip cpython-b35ffc0417a0861ccf466c0503c4151725a0267a.tar.gz cpython-b35ffc0417a0861ccf466c0503c4151725a0267a.tar.bz2 |
added "magic" number to the _sre module, to avoid weird errors caused
by compiler/engine mismatches
Diffstat (limited to 'Lib/sre_compile.py')
-rw-r--r-- | Lib/sre_compile.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index adab767..c2996fc 100644 --- a/Lib/sre_compile.py +++ b/Lib/sre_compile.py @@ -12,6 +12,8 @@ import _sre from sre_constants import * +assert _sre.MAGIC == MAGIC, "SRE module mismatch" + MAXCODE = 65535 def _compile(code, pattern, flags): |