]> granicus.if.org Git - python/commitdiff
Add back an sre.py that should be backwards compatible except for the warning.
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 16 Mar 2006 06:31:02 +0000 (06:31 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 16 Mar 2006 06:31:02 +0000 (06:31 +0000)
Lib/sre.py [new file with mode: 0644]

diff --git a/Lib/sre.py b/Lib/sre.py
new file mode 100644 (file)
index 0000000..8d36b14
--- /dev/null
@@ -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__