diff options
author | Barry Warsaw <barry@python.org> | 2021-06-24 19:37:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-24 19:37:26 (GMT) |
commit | 8488b85c6397fe58f17fc00e047044c959ac0b04 (patch) | |
tree | 379e7953b538a0f0aa5652e5613c4005c0dfa828 /Doc/library | |
parent | 19459f8ce63cc7f905e3c1a55d09d4d10d245343 (diff) | |
download | cpython-8488b85c6397fe58f17fc00e047044c959ac0b04.zip cpython-8488b85c6397fe58f17fc00e047044c959ac0b04.tar.gz cpython-8488b85c6397fe58f17fc00e047044c959ac0b04.tar.bz2 |
bpo-44498: Issue a deprecation warning on asynchat, asyncore and smtpd import (#26882)
* Issue a deprecation warning on smtpd import
* Also issue DeprecationWarnings for asynchat and asyncore
* Fix some tests
* test___all__ requires the word 'module' or 'package' in the deprecation
warning text, so add those to smtpd, asynchat, and asyncore.
* In test_support, use pprint now instead of asyncore as the landmark.
* Add What's New
* Use ..deprecated::
* Use ..deprecated::
* Update Lib/smtpd.py
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* Update Doc/library/smtpd.rst
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* Import async{hat,ore} after the DeprecationWarning for this module
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/smtpd.rst | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/library/smtpd.rst b/Doc/library/smtpd.rst index ae66e7e..611411d 100644 --- a/Doc/library/smtpd.rst +++ b/Doc/library/smtpd.rst @@ -13,11 +13,10 @@ This module offers several classes to implement SMTP (email) servers. -.. seealso:: - - The `aiosmtpd <http://aiosmtpd.readthedocs.io/>`_ package is a recommended - replacement for this module. It is based on :mod:`asyncio` and provides a - more straightforward API. :mod:`smtpd` should be considered deprecated. +.. deprecated:: 3.6 + The `aiosmtpd <https://aiosmtpd.readthedocs.io/>`_ package is a recommended + replacement for this module. It is based on :mod:`asyncio` and provides a + more straightforward API. Several server implementations are present; one is a generic do-nothing implementation, which can be overridden, while the other two offer |