commit | 90134c9a05146f3cc53fcb8a5de8fdfc2fe8dc93 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Wed May 30 20:46:26 2007 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Wed May 30 20:46:26 2007 +0000 |
tree | 5db4301e47fae7b88d59f4068af7be6aabadd004 | |
parent | b4eec28e3386c52a43cc02737517759deb3a3df5 [diff] [blame] |
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.