home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 December / CHIP_CD_2004-12.iso / bonus / oo / OOo_1.1.3_ru_RU_infra_WinIntel_install.exe / $PLUGINSDIR / f_0372 / python-core-2.2.2 / lib / re.py < prev    next >
Text File  |  2004-10-09  |  818b  |  34 lines

  1. """Minimal "re" compatibility wrapper"""
  2.  
  3. # If your regexps don't work well under 2.0b1, you can switch
  4. # to the old engine ("pre") down below.
  5. #
  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:
  9. #
  10. #    http://sourceforge.net/bugs/?group_id=5470
  11. #
  12. # or send a mail to SRE's author:
  13. #
  14. #    Fredrik Lundh <effbot@telia.com>
  15. #
  16. # Make sure to include the pattern, the string SRE failed to
  17. # match, and what result you expected.
  18. #
  19. # thanks /F
  20. #
  21.  
  22. engine = "sre"
  23. # engine = "pre"
  24.  
  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__
  34.