Have MimeWriter raise a DeprecationWarning as per PEP 4 and its documentation.
diff --git a/Lib/MimeWriter.py b/Lib/MimeWriter.py
index 58c0a0b..e898f9f 100644
--- a/Lib/MimeWriter.py
+++ b/Lib/MimeWriter.py
@@ -14,6 +14,11 @@
__all__ = ["MimeWriter"]
+import warnings
+
+warnings.warn("the MimeWriter module is deprecated; use the email package instead",
+ DeprecationWarning, 2)
+
class MimeWriter:
"""Generic MIME writer.
diff --git a/Lib/test/test_MimeWriter.py b/Lib/test/test_MimeWriter.py
index feca163..5a20bf2 100644
--- a/Lib/test/test_MimeWriter.py
+++ b/Lib/test/test_MimeWriter.py
@@ -10,6 +10,10 @@
import unittest, sys, StringIO
from test.test_support import run_unittest
+import warnings
+warnings.filterwarnings("ignore", "the MimeWriter module is deprecated.*",
+ DeprecationWarning)
+
from MimeWriter import MimeWriter
SELLER = '''\
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py
index 14795a6..071ed04 100644
--- a/Lib/test/test___all__.py
+++ b/Lib/test/test___all__.py
@@ -7,6 +7,8 @@
DeprecationWarning, "<string>")
warnings.filterwarnings("ignore", ".*popen2 module is deprecated.*",
DeprecationWarning)
+warnings.filterwarnings("ignore", "the MimeWriter module is deprecated.*",
+ DeprecationWarning)
class AllTest(unittest.TestCase):