blob: b125b2035421addf667fa7d2f1a5e134b2da6a56 [file] [log] [blame]
Fredrik Lundhef7bae62000-06-30 22:01:36 +00001#
2# Minimal "re" compatibility wrapper
3#
4# If your regexps don't work well under 2.0b1, you can switch
5# to the old engine ("pre") down below.
6#
7# To help us fix any remaining bugs in the new engine, please
8# report what went wrong. You can either use the following web
9# page:
10#
Guido van Rossum8c743352000-08-01 20:28:33 +000011# http://sourceforge.net/bugs/?group_id=5470
Fredrik Lundhef7bae62000-06-30 22:01:36 +000012#
13# or send a mail to SRE's author:
14#
15# Fredrik Lundh <effbot@telia.com>
16#
17# Make sure to include the pattern, the string SRE failed to
18# match, and what result you expected.
19#
20# thanks /F
21#
Guido van Rossum6ebb3871999-07-09 21:15:32 +000022
Guido van Rossumfb065392000-08-01 21:22:16 +000023engine = "sre"
24# engine = "pre"
Guido van Rossum6ebb3871999-07-09 21:15:32 +000025
Guido van Rossum2850d182000-06-30 16:25:20 +000026if engine == "sre":
Fredrik Lundhef7bae62000-06-30 22:01:36 +000027 # New unicode-aware engine
Guido van Rossum2850d182000-06-30 16:25:20 +000028 from sre import *
Skip Montanaro0de65802001-02-15 22:15:14 +000029 from sre import __all__
Guido van Rossum2850d182000-06-30 16:25:20 +000030else:
Fredrik Lundhef7bae62000-06-30 22:01:36 +000031 # Old 1.5.2 engine. This one supports 8-bit strings only,
32 # and will be removed in 2.0 final.
Guido van Rossum2850d182000-06-30 16:25:20 +000033 from pre import *
Skip Montanaro0de65802001-02-15 22:15:14 +000034 from pre import __all__