Skip to content

Commit da471d9

Browse files
miss-islingtonUV
and
UV
authored
[3.12] gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850) (#130393)
gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850) (cherry picked from commit 5d66c55) Co-authored-by: UV <[email protected]>
1 parent b505d0f commit da471d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/logging.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,8 @@ subclasses. However, the :meth:`!__init__` method in subclasses needs to call
562562

563563
.. method:: Handler.setFormatter(fmt)
564564

565-
Sets the :class:`Formatter` for this handler to *fmt*.
565+
Sets the formatter for this handler to *fmt*.
566+
The *fmt* argument must be a :class:`Formatter` instance or ``None``.
566567

567568

568569
.. method:: Handler.addFilter(filter)

0 commit comments

Comments
 (0)