From: Neal Norwitz Date: Thu, 16 Mar 2006 06:31:02 +0000 (+0000) Subject: Add back an sre.py that should be backwards compatible except for the warning. X-Git-Tag: v2.5a0~222 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f521de6efcf6532f89dc688e634a7fedac3d5f29;p=python Add back an sre.py that should be backwards compatible except for the warning. --- diff --git a/Lib/sre.py b/Lib/sre.py new file mode 100644 index 0000000000..8d36b14d96 --- /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__