[Python-checkins] python/dist/src/Lib re.py,1.41,1.42
akuchling@sourceforge.net
akuchling@sourceforge.net
Wed, 10 Apr 2002 14:15:42 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv17137
Modified Files:
re.py
Log Message:
Remove support for importing 'pre' module
Index: re.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/re.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** re.py 4 Sep 2001 19:10:20 -0000 1.41
--- re.py 10 Apr 2002 21:15:40 -0000 1.42
***************
*** 1,7 ****
"""Minimal "re" compatibility wrapper"""
- # 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
--- 1,4 ----
***************
*** 20,33 ****
#
! engine = "sre"
! # engine = "pre"
- if engine == "sre":
- # New unicode-aware engine
- from sre import *
- from sre import __all__
- else:
- # Old 1.5.2 engine. This one supports 8-bit strings only,
- # and will be removed in 2.0 final.
- from pre import *
- from pre import __all__
--- 17,21 ----
#
! from sre import *
! from sre import __all__