summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/regsub.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/regsub.py b/Lib/regsub.py
index dc95028..a0ca8fe 100644
--- a/Lib/regsub.py
+++ b/Lib/regsub.py
@@ -10,6 +10,13 @@ splitx(str, pat, maxsplit): split string using pattern as delimiter plus
return delimiters
"""
+import warnings
+warnings.warn("the regsub module is deprecated; please use re.sub()",
+ DeprecationWarning)
+
+# Ignore further deprecation warnings about this module
+warnings.filterwarnings("ignore", "", DeprecationWarning, __name__)
+
import regex