[Python-checkins] r43070 - python/trunk/Lib/sre.py

neal.norwitz python-checkins at python.org
Thu Mar 16 07:31:03 CET 2006


Author: neal.norwitz
Date: Thu Mar 16 07:31:02 2006
New Revision: 43070

Added:
   python/trunk/Lib/sre.py   (contents, props changed)
Log:
Add back an sre.py that should be backwards compatible except for the warning.

Added: python/trunk/Lib/sre.py
==============================================================================
--- (empty file)
+++ python/trunk/Lib/sre.py	Thu Mar 16 07:31:02 2006
@@ -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__


More information about the Python-checkins mailing list