From fef47664e38f5f45e32f764f2e9e91d4ab2ca93c Mon Sep 17 00:00:00 2001 From: UV Date: Fri, 21 Feb 2025 12:40:04 +0530 Subject: [PATCH] gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850) (cherry picked from commit 5d66c55c8ad0a0aeff8d06021ddca1d02c5f4416) Co-authored-by: UV --- Doc/library/logging.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 5795645f71d1cd..a5f34665d5cb2b 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -562,7 +562,8 @@ subclasses. However, the :meth:`!__init__` method in subclasses needs to call .. method:: Handler.setFormatter(fmt) - Sets the :class:`Formatter` for this handler to *fmt*. + Sets the formatter for this handler to *fmt*. + The *fmt* argument must be a :class:`Formatter` instance or ``None``. .. method:: Handler.addFilter(filter)