diff options
Diffstat (limited to 'Lib/mhlib.py')
-rw-r--r-- | Lib/mhlib.py | 4 |
1 files changed, 4 insertions, 0 deletions
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.getheadertext(pred) # text of message's headers, filtered by pred 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 |