mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
gh-129143: Fix incorrect documentation for logging.Handler.close(). (GH-129950)
This commit is contained in:
parent
b8f7bddd6c
commit
7c156a63d3
1 changed files with 6 additions and 4 deletions
|
@ -592,10 +592,12 @@ subclasses. However, the :meth:`!__init__` method in subclasses needs to call
|
||||||
|
|
||||||
.. method:: Handler.close()
|
.. method:: Handler.close()
|
||||||
|
|
||||||
Tidy up any resources used by the handler. This version does no output but
|
Tidy up any resources used by the handler. This version does no output
|
||||||
removes the handler from an internal list of handlers which is closed when
|
but removes the handler from an internal map of handlers, which is used
|
||||||
:func:`shutdown` is called. Subclasses should ensure that this gets called
|
for handler lookup by name.
|
||||||
from overridden :meth:`close` methods.
|
|
||||||
|
Subclasses should ensure that this gets called from overridden :meth:`close`
|
||||||
|
methods.
|
||||||
|
|
||||||
|
|
||||||
.. method:: Handler.handle(record)
|
.. method:: Handler.handle(record)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue