diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-05-30 21:48:58 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-05-30 21:48:58 +0000 |
commit | c249bdab92cc6fd933fb4972356a3fb0a0865ec4 (patch) | |
tree | 4cd81c883a877c43f1b81c06d6952adb7dbd362b /Lib/mimify.py | |
parent | 90134c9a05146f3cc53fcb8a5de8fdfc2fe8dc93 (diff) | |
download | cpython-git-c249bdab92cc6fd933fb4972356a3fb0a0865ec4.tar.gz |
Have mimify raise a DeprecationWarning. The docs and PEP 4 have listed the
module as deprecated for a while.
Diffstat (limited to 'Lib/mimify.py')
-rwxr-xr-x | Lib/mimify.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/mimify.py b/Lib/mimify.py index b6f61439d7..1c15983d1e 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) |