From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 10 Feb 2025 11:26:50 +0000 (+0100) Subject: [3.13] gh-129143: Fix incorrect documentation for logging.Handler.close(). (GH-129950... X-Git-Tag: v3.13.3~292 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a00f5a84fdefac2acda2a1a636b07b3fada08f97;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-129143: Fix incorrect documentation for logging.Handler.close(). (GH-129950) (GH-129951) (cherry picked from commit 7c156a63d3d5aadff0d40af73c0f622f7a0fcea5) --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index e93083420969..3d84cc70684d 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -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)