home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Software / TemaCD / webclean / !!!python!!! / BeOpen-Python-2.0.exe / RE.PY < prev    next >
Encoding:
Text File  |  2000-09-28  |  793 b   |  33 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. 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.