Skip to content

Commit

Permalink
Updated Handler.setFormatter description to include None as a valid f…
Browse files Browse the repository at this point in the history
…mt argument
  • Loading branch information
Uvi-12 committed Dec 12, 2024
1 parent b897be8 commit c80bf36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c80bf36

Please sign in to comment.