https://github.com/python/cpython/commit/08a9b7c385bbdc36b816fe1d1b29ff87e10082d7
commit: 08a9b7c385bbdc36b816fe1d1b29ff87e10082d7
branch: 3.12
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: vsajip <vinay_sa...@yahoo.co.uk>
date: 2025-02-10T11:26:18Z
summary:

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

(cherry picked from commit 7c156a63d3d5aadff0d40af73c0f622f7a0fcea5)

files:
M Doc/library/logging.rst

diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 22f135bbecd3a3..5795645f71d1cd 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)

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to