Skip to content

Commit 04b0c5f

Browse files
CAM-Gerlachmiss-islington
authored andcommitted
pythongh-92611: Link to PEP 594 sections & add key detail in doc deprecation notices (pythonGH-92612)
(cherry picked from commit 9f68dab) Co-authored-by: CAM Gerlach <[email protected]>
1 parent 60c4bca commit 04b0c5f

21 files changed

+46
-22
lines changed

Doc/library/aifc.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515

1616
.. deprecated:: 3.11
17-
The :mod:`aifc` module is deprecated (see :pep:`594` for details).
17+
The :mod:`aifc` module is deprecated
18+
(see :pep:`PEP 594 <594#aifc>` for details).
1819

1920
--------------
2021

Doc/library/asynchat.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
**Source code:** :source:`Lib/asynchat.py`
1212

1313
.. deprecated:: 3.6
14-
:mod:`asynchat` will be removed in Python 3.12 (:pep:`594`).
14+
:mod:`asynchat` will be removed in Python 3.12
15+
(see :pep:`PEP 594 <594#asynchat>` for details).
1516
Please use :mod:`asyncio` instead.
1617

1718
--------------

Doc/library/asyncore.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
**Source code:** :source:`Lib/asyncore.py`
1515

1616
.. deprecated:: 3.6
17-
:mod:`asyncore` will be removed in Python 3.12 (:pep:`594`).
17+
:mod:`asyncore` will be removed in Python 3.12
18+
(see :pep:`PEP 594 <594#asyncore>` for details).
1819
Please use :mod:`asyncio` instead.
1920

2021
--------------

Doc/library/audioop.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
:deprecated:
77

88
.. deprecated:: 3.11
9-
The :mod:`audioop` module is deprecated (see :pep:`594` for details).
9+
The :mod:`audioop` module is deprecated
10+
(see :pep:`PEP 594 <594#audioop>` for details).
1011

1112
--------------
1213

Doc/library/cgi.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
single: Common Gateway Interface
1717

1818
.. deprecated:: 3.11
19-
The :mod:`cgi` module is deprecated (see :pep:`594` for details).
19+
The :mod:`cgi` module is deprecated
20+
(see :pep:`PEP 594 <594#cgi>` for details and alternatives).
2021

2122
--------------
2223

Doc/library/cgitb.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
single: tracebacks; in CGI scripts
1818

1919
.. deprecated:: 3.11
20-
The :mod:`cgitb` module is deprecated (see :pep:`594` for details).
20+
The :mod:`cgitb` module is deprecated
21+
(see :pep:`PEP 594 <594#cgitb>` for details).
2122

2223
--------------
2324

Doc/library/chunk.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
single: RMFF
1919

2020
.. deprecated:: 3.11
21-
The :mod:`chunk` module is deprecated (see :pep:`594` for details).
21+
The :mod:`chunk` module is deprecated
22+
(see :pep:`PEP 594 <594#chunk>` for details).
2223

2324
--------------
2425

Doc/library/crypt.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
pair: cipher; DES
1818

1919
.. deprecated:: 3.11
20-
The :mod:`crypt` module is deprecated (see :pep:`594` for details).
20+
The :mod:`crypt` module is deprecated
21+
(see :pep:`PEP 594 <594#crypt>` for details and alternatives).
22+
The :mod:`hashlib` module is a potential replacement for certain use cases.
2123

2224
--------------
2325

Doc/library/imghdr.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
**Source code:** :source:`Lib/imghdr.py`
99

1010
.. deprecated:: 3.11
11-
The :mod:`imghdr` module is deprecated (see :pep:`594` for details).
11+
The :mod:`imghdr` module is deprecated
12+
(see :pep:`PEP 594 <594#imghdr>` for details and alternatives).
1213

1314
--------------
1415

Doc/library/mailcap.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
**Source code:** :source:`Lib/mailcap.py`
99

1010
.. deprecated:: 3.11
11-
The :mod:`mailcap` module is deprecated. See :pep:`594` for the rationale
12-
and the :mod:`mimetypes` module for an alternative.
11+
The :mod:`mailcap` module is deprecated
12+
(see :pep:`PEP 594 <594#mailcap>` for details).
13+
The :mod:`mimetypes` module provides an alternative.
1314

1415
--------------
1516

0 commit comments

Comments
 (0)