summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-05-30 21:48:58 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-05-30 21:48:58 (GMT)
commitc249bdab92cc6fd933fb4972356a3fb0a0865ec4 (patch)
tree4cd81c883a877c43f1b81c06d6952adb7dbd362b /Lib
parent90134c9a05146f3cc53fcb8a5de8fdfc2fe8dc93 (diff)
downloadcpython-c249bdab92cc6fd933fb4972356a3fb0a0865ec4.zip
cpython-c249bdab92cc6fd933fb4972356a3fb0a0865ec4.tar.gz
cpython-c249bdab92cc6fd933fb4972356a3fb0a0865ec4.tar.bz2
Have mimify raise a DeprecationWarning. The docs and PEP 4 have listed the
module as deprecated for a while.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/mimify.py4
-rw-r--r--Lib/test/test___all__.py2
-rw-r--r--Lib/test/test_sundry.py1
3 files changed, 7 insertions, 0 deletions
diff --git a/Lib/mimify.py b/Lib/mimify.py
index b6f6143..1c15983 100755
--- a/Lib/mimify.py
+++ b/Lib/mimify.py
@@ -29,6 +29,10 @@ QUOTE = '> ' # string replies are quoted with
import re
+import warnings
+warnings.warn("the mimify module is deprecated; use the email package instead",
+ DeprecationWarning, 2)
+
__all__ = ["mimify","unmimify","mime_encode_header","mime_decode_header"]
qp = re.compile('^content-transfer-encoding:\\s*quoted-printable', re.I)
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py
index 071ed04..26ed012 100644
--- a/Lib/test/test___all__.py
+++ b/Lib/test/test___all__.py
@@ -9,6 +9,8 @@ warnings.filterwarnings("ignore", ".*popen2 module is deprecated.*",
DeprecationWarning)
warnings.filterwarnings("ignore", "the MimeWriter module is deprecated.*",
DeprecationWarning)
+warnings.filterwarnings("ignore", "the mimify module is deprecated.*",
+ DeprecationWarning)
class AllTest(unittest.TestCase):
diff --git a/Lib/test/test_sundry.py b/Lib/test/test_sundry.py
index 5711fb2..533aedc 100644
--- a/Lib/test/test_sundry.py
+++ b/Lib/test/test_sundry.py
@@ -6,6 +6,7 @@ import warnings
with guard_warnings_filter():
warnings.filterwarnings('ignore', r".*posixfile",
DeprecationWarning)
+ warnings.filterwarnings('ignore', r".*mimify", DeprecationWarning)
from test.test_support import verbose