From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 24 Feb 2025 05:23:16 +0000 (+0100) Subject: [3.13] gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850) (... X-Git-Tag: v3.13.3~218 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbfae4a912f021be44f270a63565a0bc2d156e9f;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850) (#130392) (cherry picked from commit 5d66c55c8ad0a0aeff8d06021ddca1d02c5f4416) Co-authored-by: UV Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 3d84cc70684d..28c90eae822b 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)