https://github.com/python/cpython/commit/5d66c55c8ad0a0aeff8d06021ddca1d02c5f4416
commit: 5d66c55c8ad0a0aeff8d06021ddca1d02c5f4416
branch: main
author: UV <[email protected]>
committer: vsajip <[email protected]>
date: 2025-02-21T07:10:04Z
summary:
gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850)
files:
M Doc/library/logging.rst
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 34bb46f0bb1ecb..72190e97240514 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)
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]