]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove support for importing 'pre' module
authorAndrew M. Kuchling <amk@amk.ca>
Wed, 10 Apr 2002 21:15:40 +0000 (21:15 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Wed, 10 Apr 2002 21:15:40 +0000 (21:15 +0000)
Lib/re.py

index bfd69919d2f7c23a975509a8a24e10c88254b9ff..4fef1dc178d28fdbe24d2b0caedea777cad88ac2 100644 (file)
--- a/Lib/re.py
+++ b/Lib/re.py
@@ -1,8 +1,5 @@
 """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
 # page:
 # thanks /F
 #
 
-engine = "sre"
-# engine = "pre"
+from sre import *
+from sre import __all__
 
-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__