Skip to content

Commit 838e8a2

Browse files
[3.13] Docs: fix MessageDefect references in email.policy docs (GH-128468) (#128526)
(cherry picked from commit 3b231be) Co-authored-by: Yuki Kobayashi <[email protected]>
1 parent f6da93a commit 838e8a2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Doc/library/email.policy.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ added matters. To illustrate::
267267

268268
Handle a *defect* found on *obj*. When the email package calls this
269269
method, *defect* will always be a subclass of
270-
:class:`~email.errors.Defect`.
270+
:class:`~email.errors.MessageDefect`.
271271

272272
The default implementation checks the :attr:`raise_on_defect` flag. If
273273
it is ``True``, *defect* is raised as an exception. If it is ``False``
@@ -277,7 +277,7 @@ added matters. To illustrate::
277277
.. method:: register_defect(obj, defect)
278278

279279
Register a *defect* on *obj*. In the email package, *defect* will always
280-
be a subclass of :class:`~email.errors.Defect`.
280+
be a subclass of :class:`~email.errors.MessageDefect`.
281281

282282
The default implementation calls the ``append`` method of the ``defects``
283283
attribute of *obj*. When the email package calls :attr:`handle_defect`,

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ Doc/library/email.charset.rst
2424
Doc/library/email.compat32-message.rst
2525
Doc/library/email.errors.rst
2626
Doc/library/email.parser.rst
27-
Doc/library/email.policy.rst
2827
Doc/library/exceptions.rst
2928
Doc/library/functools.rst
3029
Doc/library/http.cookiejar.rst

0 commit comments

Comments
 (0)