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