File tree 8 files changed +16
-3
lines changed
8 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 10
10
**Source code: ** :source: `Lib/asynchat.py `
11
11
12
12
.. deprecated :: 3.6
13
+ :mod: `asynchat ` will be removed in Python 3.12 (:pep: `594 `).
13
14
Please use :mod: `asyncio ` instead.
14
15
15
16
--------------
Original file line number Diff line number Diff line change 13
13
**Source code: ** :source: `Lib/asyncore.py `
14
14
15
15
.. deprecated :: 3.6
16
+ :mod: `asyncore ` will be removed in Python 3.12 (:pep: `594 `).
16
17
Please use :mod: `asyncio ` instead.
17
18
18
19
--------------
Original file line number Diff line number Diff line change 14
14
This module offers several classes to implement SMTP (email) servers.
15
15
16
16
.. deprecated :: 3.6
17
+ :mod: `smtpd ` will be removed in Python 3.12 (:pep: `594 `).
17
18
The `aiosmtpd <https://aiosmtpd.readthedocs.io/ >`_ package is a recommended
18
19
replacement for this module. It is based on :mod: `asyncio ` and provides a
19
20
more straightforward API.
Original file line number Diff line number Diff line change @@ -523,6 +523,11 @@ Deprecated
523
523
:func: `locale.getlocale ` functions instead.
524
524
(Contributed by Victor Stinner in :issue: `46659 `.)
525
525
526
+ * The :mod: `asynchat `, :mod: `asyncore ` and :mod: `smtpd ` modules have been
527
+ deprecated since at least Python 3.6. Their documentation and deprecation
528
+ warnings have now been updated to note they will removed in Python 3.12
529
+ (:pep: `594 `).
530
+ (Contributed by Hugo van Kemenade in :issue: `47022 `.)
526
531
527
532
Removed
528
533
=======
Original file line number Diff line number Diff line change 50
50
51
51
from warnings import warn
52
52
warn (
53
- 'The asynchat module is deprecated. '
53
+ 'The asynchat module is deprecated and will be removed in Python 3.12 . '
54
54
'The recommended replacement is asyncio' ,
55
55
DeprecationWarning ,
56
56
stacklevel = 2 )
Original file line number Diff line number Diff line change 58
58
errorcode
59
59
60
60
warnings .warn (
61
- 'The asyncore module is deprecated. '
61
+ 'The asyncore module is deprecated and will be removed in Python 3.12 . '
62
62
'The recommended replacement is asyncio' ,
63
63
DeprecationWarning ,
64
64
stacklevel = 2 )
Original file line number Diff line number Diff line change 85
85
]
86
86
87
87
warn (
88
- 'The smtpd module is deprecated and unmaintained. Please see aiosmtpd '
88
+ 'The smtpd module is deprecated and unmaintained and will be removed '
89
+ 'in Python 3.12. Please see aiosmtpd '
89
90
'(https://aiosmtpd.readthedocs.io/) for the recommended replacement.' ,
90
91
DeprecationWarning ,
91
92
stacklevel = 2 )
Original file line number Diff line number Diff line change
1
+ The :mod: `asynchat `, :mod: `asyncore ` and :mod: `smtpd ` modules have been
2
+ deprecated since at least Python 3.6. Their documentation and deprecation
3
+ warnings and have now been updated to note they will removed in Python 3.12
4
+ (:pep: `594 `).
You can’t perform that action at this time.
0 commit comments