Skip to content

Commit a36d97e

Browse files
authored
gh-68966: Document mailcap deprecation in Python 3.11 (#91971)
(cherry picked from commit 80de027)
1 parent 280749a commit a36d97e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Doc/library/mailcap.rst

+5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33

44
.. module:: mailcap
55
:synopsis: Mailcap file handling.
6+
:deprecated:
67

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

10+
.. 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.
13+
914
--------------
1015

1116
Mailcap files are used to configure how MIME-aware applications such as mail

Doc/library/netdata.rst

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on the internet.
1313

1414
email.rst
1515
json.rst
16-
mailcap.rst
1716
mailbox.rst
1817
mimetypes.rst
1918
base64.rst

Doc/library/superseded.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ backwards compatibility. They have been superseded by other modules.
2020
crypt.rst
2121
imghdr.rst
2222
imp.rst
23+
mailcap.rst
2324
msilib.rst
24-
nntplib.rst
2525
nis.rst
26+
nntplib.rst
2627
optparse.rst
2728
ossaudiodev.rst
2829
pipes.rst

0 commit comments

Comments
 (0)