blob: b0a9f93cbfa79dbf4966bdc8577f53a0d0e3a025 [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#
11# http://www.python.org/search/search_bugs.html
12#
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 Rossum2850d182000-06-30 16:25:20 +000023engine = "sre"
Fredrik Lundhef7bae62000-06-30 22:01:36 +000024# 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 *
29else:
Fredrik Lundhef7bae62000-06-30 22:01:36 +000030 # Old 1.5.2 engine. This one supports 8-bit strings only,
31 # and will be removed in 2.0 final.
Guido van Rossum2850d182000-06-30 16:25:20 +000032 from pre import *