2001-09-04 19:10:20 +00:00
|
|
|
"""Minimal "re" compatibility wrapper"""
|
|
|
|
|
2000-06-30 22:01:36 +00:00
|
|
|
# If your regexps don't work well under 2.0b1, you can switch
|
|
|
|
# to the old engine ("pre") down below.
|
|
|
|
#
|
|
|
|
# To help us fix any remaining bugs in the new engine, please
|
|
|
|
# report what went wrong. You can either use the following web
|
|
|
|
# page:
|
|
|
|
#
|
2000-08-01 20:28:33 +00:00
|
|
|
# http://sourceforge.net/bugs/?group_id=5470
|
2000-06-30 22:01:36 +00:00
|
|
|
#
|
|
|
|
# or send a mail to SRE's author:
|
|
|
|
#
|
|
|
|
# Fredrik Lundh <effbot@telia.com>
|
|
|
|
#
|
|
|
|
# Make sure to include the pattern, the string SRE failed to
|
|
|
|
# match, and what result you expected.
|
|
|
|
#
|
|
|
|
# thanks /F
|
|
|
|
#
|
1999-07-09 21:15:32 +00:00
|
|
|
|
2000-08-01 21:22:16 +00:00
|
|
|
engine = "sre"
|
|
|
|
# engine = "pre"
|
1999-07-09 21:15:32 +00:00
|
|
|
|
2000-06-30 16:25:20 +00:00
|
|
|
if engine == "sre":
|
2000-06-30 22:01:36 +00:00
|
|
|
# New unicode-aware engine
|
2000-06-30 16:25:20 +00:00
|
|
|
from sre import *
|
2001-02-15 22:15:14 +00:00
|
|
|
from sre import __all__
|
2000-06-30 16:25:20 +00:00
|
|
|
else:
|
2000-06-30 22:01:36 +00:00
|
|
|
# Old 1.5.2 engine. This one supports 8-bit strings only,
|
|
|
|
# and will be removed in 2.0 final.
|
2000-06-30 16:25:20 +00:00
|
|
|
from pre import *
|
2001-02-15 22:15:14 +00:00
|
|
|
from pre import __all__
|