From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 17 Sep 2023 20:50:37 +0000 (-0700) Subject: [3.12] gh-109451: Fix wrong format specifier in logging documentation (GH-109465... X-Git-Tag: v3.12.0rc3~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc12f6684e8fd9d39d866957860b884b3545a69b;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-109451: Fix wrong format specifier in logging documentation (GH-109465) (#109483) gh-109451: Fix wrong format specifier in logging documentation (GH-109465) (cherry picked from commit 929cc4e4a0999b777e1aa94f9c007db720e67f43) Co-authored-by: AlberLC <37489786+AlberLC@users.noreply.github.com> --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index d369c53f0f91..6d1f048d283c 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -907,7 +907,7 @@ you want to use. In the case of {}-formatting, you can specify formatting flags by placing them after the attribute name, separated from it with a colon. For example: a -placeholder of ``{msecs:03d}`` would format a millisecond value of ``4`` as +placeholder of ``{msecs:03.0f}`` would format a millisecond value of ``4`` as ``004``. Refer to the :meth:`str.format` documentation for full details on the options available to you.