https://github.com/python/cpython/commit/4016be27755ef6d0cb8cd11e0625b97fafaccf0f
commit: 4016be27755ef6d0cb8cd11e0625b97fafaccf0f
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: erlend-aasland <[email protected]>
date: 2025-01-05T22:05:48Z
summary:

[3.12] Docs: fix `MessageDefect` references in email.policy docs (GH-128468) 
(#128527)

(cherry picked from commit 3b231be8f000ae59faa04d5a2f1af11beafee866)

Co-authored-by: Yuki Kobayashi <[email protected]>

files:
M Doc/library/email.policy.rst
M Doc/tools/.nitignore

diff --git a/Doc/library/email.policy.rst b/Doc/library/email.policy.rst
index 51d65dc5ba94ee..152350b0b02659 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`,
diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore
index e69e6100945672..a721b494d750eb 100644
--- a/Doc/tools/.nitignore
+++ b/Doc/tools/.nitignore
@@ -31,7 +31,6 @@ Doc/library/email.charset.rst
 Doc/library/email.compat32-message.rst
 Doc/library/email.errors.rst
 Doc/library/email.parser.rst
-Doc/library/email.policy.rst
 Doc/library/exceptions.rst
 Doc/library/functools.rst
 Doc/library/getopt.rst

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to