summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-16 06:31:02 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-16 06:31:02 (GMT)
commitf521de6efcf6532f89dc688e634a7fedac3d5f29 (patch)
tree1b4a90294c97e431270b2acb8ea3377fd045d929 /Lib
parent94a9c09e109706af64ae8796882baab2af25be2f (diff)
downloadcpython-f521de6efcf6532f89dc688e634a7fedac3d5f29.zip
cpython-f521de6efcf6532f89dc688e634a7fedac3d5f29.tar.gz
cpython-f521de6efcf6532f89dc688e634a7fedac3d5f29.tar.bz2
Add back an sre.py that should be backwards compatible except for the warning.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/sre.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/sre.py b/Lib/sre.py
new file mode 100644
index 0000000..8d36b14
--- /dev/null
+++ b/Lib/sre.py
@@ -0,0 +1,10 @@
+"""This file is only retained for backwards compatability.
+It will be removed in the future. sre was moved to re in version 2.5.
+"""
+
+import warnings
+warnings.warn("The sre module is deprecated, please import re.",
+ DeprecationWarning, 2)
+
+from re import *
+from re import __all__