__all__ = ["MimeWriter"]
+import warnings
+
+warnings.warn("the MimeWriter module is deprecated; use the email package instead",
+ DeprecationWarning, 2)
+
class MimeWriter:
"""Generic MIME writer.
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 = '''\
DeprecationWarning, "<string>")
warnings.filterwarnings("ignore", ".*popen2 module is deprecated.*",
DeprecationWarning)
+warnings.filterwarnings("ignore", "the MimeWriter module is deprecated.*",
+ DeprecationWarning)
class AllTest(unittest.TestCase):
Library
-------
+- MimeWriter now raises a DeprecationWarning upon import.
+
- tarfile.py: Improved unicode support. Unicode input names are now
officially supported. Added "errors" argument to the TarFile class.