]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-68966: Document mailcap deprecation in Python 3.11 (GH-91971)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 27 Apr 2022 09:59:32 +0000 (02:59 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Apr 2022 09:59:32 +0000 (02:59 -0700)
(cherry picked from commit 80de0273c0caf8bae19787bb00255eb3fb2a2d0c)
(cherry picked from commit a36d97e3f1daeb431e1c5bc8ab83daca93b747b0)

Co-authored-by: Victor Stinner <vstinner@python.org>
Doc/library/mailcap.rst
Doc/library/netdata.rst
Doc/library/superseded.rst

index bf9639bdaca50a8c7b9b833bb06f0497760adadf..cd5ab0b32f49c7249a6de1b50bc9793a93cce696 100644 (file)
@@ -3,9 +3,14 @@
 
 .. module:: mailcap
    :synopsis: Mailcap file handling.
+   :deprecated:
 
 **Source code:** :source:`Lib/mailcap.py`
 
+.. deprecated:: 3.11
+   The :mod:`mailcap` module is deprecated. See :pep:`594` for the rationale
+   and the :mod:`mimetypes` module for an alternative.
+
 --------------
 
 Mailcap files are used to configure how MIME-aware applications such as mail
index 8a3ad68753a535d20419c3ffb366b53c5c678827..2520036c2fa518e21b8b8de4debb99d8f343b7b0 100644 (file)
@@ -13,7 +13,6 @@ on the Internet.
 
    email.rst
    json.rst
-   mailcap.rst
    mailbox.rst
    mimetypes.rst
    base64.rst
index e3f9b0d37fe10bdbd9acf86a8f74d6a923108ad9..b38f16691f6ea9ac72cdbf7dda7ecd6d1d1052dd 100644 (file)
@@ -20,9 +20,10 @@ backwards compatibility. They have been superseded by other modules.
    crypt.rst
    imghdr.rst
    imp.rst
+   mailcap.rst
    msilib.rst
-   nntplib.rst
    nis.rst
+   nntplib.rst
    optparse.rst
    ossaudiodev.rst
    pipes.rst