This commit was manufactured by cvs2svn to create tag 'r221c2'.
[python/dscho.git] / Lib / re.py
blobbfd69919d2f7c23a975509a8a24e10c88254b9ff
1 """Minimal "re" compatibility wrapper"""
3 # If your regexps don't work well under 2.0b1, you can switch
4 # to the old engine ("pre") down below.
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:
10 # http://sourceforge.net/bugs/?group_id=5470
12 # or send a mail to SRE's author:
14 # Fredrik Lundh <effbot@telia.com>
16 # Make sure to include the pattern, the string SRE failed to
17 # match, and what result you expected.
19 # thanks /F
22 engine = "sre"
23 # engine = "pre"
25 if engine == "sre":
26 # New unicode-aware engine
27 from sre import *
28 from sre import __all__
29 else:
30 # Old 1.5.2 engine. This one supports 8-bit strings only,
31 # and will be removed in 2.0 final.
32 from pre import *
33 from pre import __all__