gh-101100: Fix Sphinx warnings in library/email.compat32-message.rst (#136323)

This commit is contained in:
Weilin Du
2025-07-08 00:28:44 +08:00
committed by GitHub
parent fb170cf50d
commit 0b62523959
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