commit | f521de6efcf6532f89dc688e634a7fedac3d5f29 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Thu Mar 16 06:31:02 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Thu Mar 16 06:31:02 2006 +0000 |
tree | 1b4a90294c97e431270b2acb8ea3377fd045d929 | |
parent | 94a9c09e109706af64ae8796882baab2af25be2f [diff] |
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 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__