]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-129143: Fix incorrect documentation for logging.Handler.close(). (GH-129950)
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 10 Feb 2025 11:13:52 +0000 (11:13 +0000)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2025 11:13:52 +0000 (11:13 +0000)
Doc/library/logging.rst

index 19ae024f9eeffaf71eb854afbd5baf67b540d056..34bb46f0bb1ecb126731782949cd4dc6d752d944 100644 (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)