summaryrefslogtreecommitdiffstats
path: root/Lib/re.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2002-04-10 21:15:40 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2002-04-10 21:15:40 (GMT)
commit7fd1c8c880ebb9df09002bd8c165aeb95a947bdf (patch)
tree230f301ca2ac686ecab33039b2e81d2655994200 /Lib/re.py
parent409a4c08b545aa064cf8fe3b8de51404756a301e (diff)
downloadcpython-7fd1c8c880ebb9df09002bd8c165aeb95a947bdf.zip
cpython-7fd1c8c880ebb9df09002bd8c165aeb95a947bdf.tar.gz
cpython-7fd1c8c880ebb9df09002bd8c165aeb95a947bdf.tar.bz2
Remove support for importing 'pre' module
Diffstat (limited to 'Lib/re.py')
-rw-r--r--Lib/re.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/Lib/re.py b/Lib/re.py
index bfd6991..4fef1dc 100644
--- 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:
@@ -19,15 +16,6 @@
# 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__