From c80bf36c64db02986ed6dec68815abb88c437521 Mon Sep 17 00:00:00 2001 From: UV Date: Thu, 12 Dec 2024 19:47:53 +0530 Subject: [PATCH] Updated Handler.setFormatter description to include None as a valid fmt argument --- Doc/library/logging.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index f316a55caf712c..52f3206841fea1 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -562,7 +562,7 @@ subclasses. However, the :meth:`!__init__` method in subclasses needs to call .. method:: Handler.setFormatter(fmt) - Sets the :class:`Formatter` for this handler to *fmt*. The *fmt* argument must be an initialized :class:`Formatter` instance. + Sets the :class:`Formatter` for this handler to *fmt*. The *fmt* argument must be an initialized :class:`Formatter` instance or ``None``. .. method:: Handler.addFilter(filter)