mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Deprecated the mhlib module for removal in 3.0.
This commit is contained in:
parent
79964cf64f
commit
2a86913864
6 changed files with 15 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue