[3.12] gh-129143: Fix incorrect documentation for logging.Handler.close(). (GH-129950) (GH-129952)

(cherry picked from commit 7c156a63d3)
This commit is contained in:
Miss Islington (bot) 2025-02-10 12:26:18 +01:00 committed by GitHub
parent 3d2ca741dc
commit 08a9b7c385
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -592,10 +592,12 @@ subclasses. However, the :meth:`!__init__` method in subclasses needs to call
.. method:: Handler.close()
Tidy up any resources used by the handler. This version does no output but
removes the handler from an internal list of handlers which is closed when
:func:`shutdown` is called. Subclasses should ensure that this gets called
from overridden :meth:`close` methods.
Tidy up any resources used by the handler. This version does no output
but removes the handler from an internal map of handlers, which is used
for handler lookup by name.
Subclasses should ensure that this gets called from overridden :meth:`close`
methods.
.. method:: Handler.handle(record)