bpo-47022: Document asynchat, asyncore and smtpd removals in 3.12 (GH-31891)

Document the deprecation of asyncore, asynchat, and smtpd with a slated removal in Python 3.12 thanks to PEP 594.
This commit is contained in:
Hugo van Kemenade 2022-03-18 21:45:37 +02:00 committed by GitHub
parent 3a2b89580d
commit 7747384643
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 23 additions and 4 deletions

View file

@ -58,7 +58,7 @@ from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, EINVAL, \
errorcode
warnings.warn(
'The asyncore module is deprecated. '
'The asyncore module is deprecated and will be removed in Python 3.12. '
'The recommended replacement is asyncio',
DeprecationWarning,
stacklevel=2)