https://github.com/python/cpython/commit/bbfae4a912f021be44f270a63565a0bc2d156e9f commit: bbfae4a912f021be44f270a63565a0bc2d156e9f branch: 3.13 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: hugovk <1324225+hug...@users.noreply.github.com> date: 2025-02-24T07:23:16+02:00 summary:
[3.13] gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850) (#130392) (cherry picked from commit 5d66c55c8ad0a0aeff8d06021ddca1d02c5f4416) Co-authored-by: UV <yuvrajpradhan...@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hug...@users.noreply.github.com> files: M Doc/library/logging.rst diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 3d84cc70684de3..28c90eae822b31 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 -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com