commit | 2a869138645a38bea2517d00133158567a39caaf | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Sun May 11 03:01:47 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Sun May 11 03:01:47 2008 +0000 |
tree | cdc57e48e8ee47317ba88da5e4c553b754b2ccac | |
parent | 79964cf64f8779a2eda9f7573388b1d086bda6eb [diff] [blame] |
Deprecated the mhlib module for removal in 3.0.
diff --git a/Lib/mhlib.py b/Lib/mhlib.py index 1a90375..856e878 100644 --- a/Lib/mhlib.py +++ b/Lib/mhlib.py
@@ -52,6 +52,10 @@ s = m.getbodytext() # text of message's body, decoded s = m.getbodytext(0) # text of message's body, not decoded """ +from warnings import warnpy3k +warnpy3k("the mhlib module has been removed in Python 3.0; use the mailbox " + "module instead", stacklevel=2) +del warnpy3k # XXX To do, functionality: # - annotate messages