File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # change this to "pre" if your regexps stopped working. don't
2- # forget to send a bug report to <some suitable address>
1+ #
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 <[email protected] > 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+ #
322
423engine = "sre"
24+ # engine = "pre"
525
626if engine == "sre" :
7- # new 2.0 engine
27+ # New unicode-aware engine
828 from sre import *
929else :
10- # old 1.5.2 engine. will be removed in 2.0 final.
30+ # Old 1.5.2 engine. This one supports 8-bit strings only,
31+ # and will be removed in 2.0 final.
1132 from pre import *
You can’t perform that action at this time.
0 commit comments