]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: fix `MessageDefect` references in email.policy docs (#128468)
authorYuki Kobayashi <drsuaimqjgar@gmail.com>
Sun, 5 Jan 2025 21:58:31 +0000 (06:58 +0900)
committerGitHub <noreply@github.com>
Sun, 5 Jan 2025 21:58:31 +0000 (22:58 +0100)
Doc/library/email.policy.rst
Doc/tools/.nitignore

index 314767d0802a088734e4190eb13670b6d50ae0c5..6b997ee784f6e444c2df7dc3e408b454165c08dc 100644 (file)
@@ -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`,
index 7d50aec56a9bf78b698fe96ff331d3840f906d87..6940c95ab2c9a113129269ba3b0430f491c89f5b 100644 (file)
@@ -23,7 +23,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/http.cookiejar.rst