Add a deprecation notice to mailbox' old classes' doc.

This commit is contained in:
Georg Brandl 2008-05-11 21:54:09 +00:00
parent d61c70d45f
commit 5a3277253d
1 changed files with 3 additions and 1 deletions

View File

@ -1507,11 +1507,13 @@ The following exception classes are defined in the :mod:`mailbox` module:
Deprecated classes and methods
------------------------------
.. deprecated:: 2.6
Older versions of the :mod:`mailbox` module do not support modification of
mailboxes, such as adding or removing message, and do not provide classes to
represent format-specific message properties. For backward compatibility, the
older mailbox classes are still available, but the newer classes should be used
in preference to them.
in preference to them. The old classes will be removed in Python 3.0.
Older mailbox objects support only iteration and provide a single public method: