[3.14] gh-101100: Fix Sphinx warnings in library/email.compat32-message.rst (GH-136323) (#136389)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-07-07 18:50:56 +02:00 committed by GitHub
parent e25531331b
commit 5a7d266fcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 10 deletions

View file

@ -181,7 +181,7 @@ Here are the methods of the :class:`Message` class:
:meth:`set_payload` instead.
This is a legacy method. On the
:class:`~email.emailmessage.EmailMessage` class its functionality is
:class:`~email.message.EmailMessage` class its functionality is
replaced by :meth:`~email.message.EmailMessage.set_content` and the
related ``make`` and ``add`` methods.
@ -224,7 +224,7 @@ Here are the methods of the :class:`Message` class:
ASCII charset.
This is a legacy method. On the
:class:`~email.emailmessage.EmailMessage` class its functionality is
:class:`~email.message.EmailMessage` class its functionality is
replaced by :meth:`~email.message.EmailMessage.get_content` and
:meth:`~email.message.EmailMessage.iter_parts`.
@ -236,7 +236,7 @@ Here are the methods of the :class:`Message` class:
the message's default character set; see :meth:`set_charset` for details.
This is a legacy method. On the
:class:`~email.emailmessage.EmailMessage` class its functionality is
:class:`~email.message.EmailMessage` class its functionality is
replaced by :meth:`~email.message.EmailMessage.set_content`.
@ -265,9 +265,9 @@ Here are the methods of the :class:`Message` class:
using that :mailheader:`Content-Transfer-Encoding` and is not modified.
This is a legacy method. On the
:class:`~email.emailmessage.EmailMessage` class its functionality is
:class:`~email.message.EmailMessage` class its functionality is
replaced by the *charset* parameter of the
:meth:`email.emailmessage.EmailMessage.set_content` method.
:meth:`email.message.EmailMessage.set_content` method.
.. method:: get_charset()
@ -276,7 +276,7 @@ Here are the methods of the :class:`Message` class:
message's payload.
This is a legacy method. On the
:class:`~email.emailmessage.EmailMessage` class it always returns
:class:`~email.message.EmailMessage` class it always returns
``None``.
@ -486,7 +486,7 @@ Here are the methods of the :class:`Message` class:
search instead of :mailheader:`Content-Type`.
This is a legacy method. On the
:class:`~email.emailmessage.EmailMessage` class its functionality is
:class:`~email.message.EmailMessage` class its functionality is
replaced by the *params* property of the individual header objects
returned by the header access methods.
@ -524,7 +524,7 @@ Here are the methods of the :class:`Message` class:
to ``False``.
This is a legacy method. On the
:class:`~email.emailmessage.EmailMessage` class its functionality is
:class:`~email.message.EmailMessage` class its functionality is
replaced by the *params* property of the individual header objects
returned by the header access methods.
@ -579,7 +579,7 @@ Here are the methods of the :class:`Message` class:
header is also added.
This is a legacy method. On the
:class:`~email.emailmessage.EmailMessage` class its functionality is
:class:`~email.message.EmailMessage` class its functionality is
replaced by the ``make_`` and ``add_`` methods.

View file

@ -15,7 +15,6 @@ Doc/extending/extending.rst
Doc/library/ast.rst
Doc/library/asyncio-extending.rst
Doc/library/email.charset.rst
Doc/library/email.compat32-message.rst
Doc/library/email.parser.rst
Doc/library/exceptions.rst
Doc/library/functools.rst