home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Software / TemaCD / activepython / ActivePython-2.1.1.msi / Python21_Lib_re.py < prev    next >
Encoding:
Text File  |  2001-07-26  |  851 b   |  35 lines

  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://sourceforge.net/bugs/?group_id=5470
  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. #
  22.  
  23. engine = "sre"
  24. # engine = "pre"
  25.  
  26. if engine == "sre":
  27.     # New unicode-aware engine
  28.     from sre import *
  29.     from sre import __all__
  30. else:
  31.     # Old 1.5.2 engine.  This one supports 8-bit strings only,
  32.     # and will be removed in 2.0 final.
  33.     from pre import *
  34.     from pre import __all__
  35.