Skip to content

Commit 9ac2de9

Browse files
authored
bpo-47061: document module deprecations due to PEP 594 (GH-31984)
Also removed asynchat, asyncore, and smtpd from their respective toctree entries so they are only in the superceded subtree.
1 parent d5d6251 commit 9ac2de9

27 files changed

+97
-22
lines changed

Doc/library/aifc.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
.. module:: aifc
55
:synopsis: Read and write audio files in AIFF or AIFC format.
6+
:deprecated:
67

78
**Source code:** :source:`Lib/aifc.py`
89

@@ -11,6 +12,10 @@
1112
single: AIFF
1213
single: AIFF-C
1314

15+
16+
.. deprecated:: 3.11
17+
The :mod:`aifc` module is deprecated (see :pep:`594` for details).
18+
1419
--------------
1520

1621
This module provides support for reading and writing AIFF and AIFF-C files.

Doc/library/audioop.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
.. module:: audioop
55
:synopsis: Manipulate raw audio data.
6+
:deprecated:
7+
8+
.. deprecated:: 3.11
9+
The :mod:`audioop` module is deprecated (see :pep:`594` for details).
610

711
--------------
812

Doc/library/cgi.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
.. module:: cgi
55
:synopsis: Helpers for running Python scripts via the Common Gateway Interface.
6+
:deprecated:
67

78
**Source code:** :source:`Lib/cgi.py`
89

@@ -14,6 +15,9 @@
1415
single: URL
1516
single: Common Gateway Interface
1617

18+
.. deprecated:: 3.11
19+
The :mod:`cgi` module is deprecated (see :pep:`594` for details).
20+
1721
--------------
1822

1923
Support module for Common Gateway Interface (CGI) scripts.

Doc/library/cgitb.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
.. module:: cgitb
55
:synopsis: Configurable traceback handler for CGI scripts.
6+
:deprecated:
67

78
.. moduleauthor:: Ka-Ping Yee <[email protected]>
89
.. sectionauthor:: Fred L. Drake, Jr. <[email protected]>
@@ -15,6 +16,9 @@
1516
single: exceptions; in CGI scripts
1617
single: tracebacks; in CGI scripts
1718

19+
.. deprecated:: 3.11
20+
The :mod:`cgitb` module is deprecated (see :pep:`594` for details).
21+
1822
--------------
1923

2024
The :mod:`cgitb` module provides a special exception handler for Python scripts.

Doc/library/chunk.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
.. module:: chunk
55
:synopsis: Module to read IFF chunks.
6+
:deprecated:
67

78
.. moduleauthor:: Sjoerd Mullender <[email protected]>
89
.. sectionauthor:: Sjoerd Mullender <[email protected]>
@@ -16,6 +17,9 @@
1617
single: Real Media File Format
1718
single: RMFF
1819

20+
.. deprecated:: 3.11
21+
The :mod:`chunk` module is deprecated (see :pep:`594` for details).
22+
1923
--------------
2024

2125
This module provides an interface for reading files that use EA IFF 85 chunks.

Doc/library/crypt.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.. module:: crypt
55
:platform: Unix
66
:synopsis: The crypt() function used to check Unix passwords.
7+
:deprecated:
78

89
.. moduleauthor:: Steven D. Majewski <[email protected]>
910
.. sectionauthor:: Steven D. Majewski <[email protected]>
@@ -15,6 +16,9 @@
1516
single: crypt(3)
1617
pair: cipher; DES
1718

19+
.. deprecated:: 3.11
20+
The :mod:`crypt` module is deprecated (see :pep:`594` for details).
21+
1822
--------------
1923

2024
This module implements an interface to the :manpage:`crypt(3)` routine, which is

Doc/library/fileformats.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ that aren't markup languages and are not related to e-mail.
1414
configparser.rst
1515
tomllib.rst
1616
netrc.rst
17-
xdrlib.rst
1817
plistlib.rst

Doc/library/imghdr.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33

44
.. module:: imghdr
55
:synopsis: Determine the type of image contained in a file or byte stream.
6+
:deprecated:
67

78
**Source code:** :source:`Lib/imghdr.py`
89

10+
.. deprecated:: 3.11
11+
The :mod:`imghdr` module is deprecated (see :pep:`594` for details).
12+
913
--------------
1014

1115
The :mod:`imghdr` module determines the type of image contained in a file or

Doc/library/internet.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ is currently supported on most popular platforms. Here is an overview:
2020
.. toctree::
2121

2222
webbrowser.rst
23-
cgi.rst
24-
cgitb.rst
2523
wsgiref.rst
2624
urllib.rst
2725
urllib.request.rst
@@ -33,10 +31,7 @@ is currently supported on most popular platforms. Here is an overview:
3331
ftplib.rst
3432
poplib.rst
3533
imaplib.rst
36-
nntplib.rst
3734
smtplib.rst
38-
smtpd.rst
39-
telnetlib.rst
4035
uuid.rst
4136
socketserver.rst
4237
http.server.rst

Doc/library/ipc.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,5 @@ The list of modules described in this chapter is:
2222
ssl.rst
2323
select.rst
2424
selectors.rst
25-
asyncore.rst
26-
asynchat.rst
2725
signal.rst
2826
mmap.rst

0 commit comments

Comments
 (0)