summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorYuki Kobayashi <drsuaimqjgar@gmail.com>2025-01-05 21:58:31 (GMT)
committerGitHub <noreply@github.com>2025-01-05 21:58:31 (GMT)
commit3b231be8f000ae59faa04d5a2f1af11beafee866 (patch)
tree2f6d4afb937a4a07bd4b1e558ada710d0c92b148 /Doc/library
parent2228e92da31ca7344a163498f848973a1b356597 (diff)
downloadcpython-3b231be8f000ae59faa04d5a2f1af11beafee866.zip
cpython-3b231be8f000ae59faa04d5a2f1af11beafee866.tar.gz
cpython-3b231be8f000ae59faa04d5a2f1af11beafee866.tar.bz2
Docs: fix `MessageDefect` references in email.policy docs (#128468)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/email.policy.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/email.policy.rst b/Doc/library/email.policy.rst
index 314767d..6b997ee 100644
--- a/Doc/library/email.policy.rst
+++ b/Doc/library/email.policy.rst
@@ -267,7 +267,7 @@ added matters. To illustrate::
Handle a *defect* found on *obj*. When the email package calls this
method, *defect* will always be a subclass of
- :class:`~email.errors.Defect`.
+ :class:`~email.errors.MessageDefect`.
The default implementation checks the :attr:`raise_on_defect` flag. If
it is ``True``, *defect* is raised as an exception. If it is ``False``
@@ -277,7 +277,7 @@ added matters. To illustrate::
.. method:: register_defect(obj, defect)
Register a *defect* on *obj*. In the email package, *defect* will always
- be a subclass of :class:`~email.errors.Defect`.
+ be a subclass of :class:`~email.errors.MessageDefect`.
The default implementation calls the ``append`` method of the ``defects``
attribute of *obj*. When the email package calls :attr:`handle_defect`,