summaryrefslogtreecommitdiffstats
path: root/Doc/howto/logging.rst
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2022-10-07 01:01:30 (GMT)
committerGitHub <noreply@github.com>2022-10-07 01:01:30 (GMT)
commitfa2d43e5184f5eaf3391844ec2400342a1b2ead4 (patch)
treefaa2f2ae684d96fd9bd81e5bc28a99bf96274254 /Doc/howto/logging.rst
parent27025e158c70331d0a8fb42fe234a2a6770850d1 (diff)
downloadcpython-fa2d43e5184f5eaf3391844ec2400342a1b2ead4.zip
cpython-fa2d43e5184f5eaf3391844ec2400342a1b2ead4.tar.gz
cpython-fa2d43e5184f5eaf3391844ec2400342a1b2ead4.tar.bz2
Docs: Fix backtick errors found by sphinx-lint (#97998)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Diffstat (limited to 'Doc/howto/logging.rst')
-rw-r--r--Doc/howto/logging.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/howto/logging.rst b/Doc/howto/logging.rst
index 0caff13..145449b 100644
--- a/Doc/howto/logging.rst
+++ b/Doc/howto/logging.rst
@@ -555,14 +555,14 @@ raw message. If there is no date format string, the default date format is:
%Y-%m-%d %H:%M:%S
-with the milliseconds tacked on at the end. The ``style`` is one of `%`, '{'
-or '$'. If one of these is not specified, then '%' will be used.
+with the milliseconds tacked on at the end. The ``style`` is one of ``'%'``,
+``'{'``, or ``'$'``. If one of these is not specified, then ``'%'`` will be used.
-If the ``style`` is '%', the message format string uses
+If the ``style`` is ``'%'``, the message format string uses
``%(<dictionary key>)s`` styled string substitution; the possible keys are
-documented in :ref:`logrecord-attributes`. If the style is '{', the message
+documented in :ref:`logrecord-attributes`. If the style is ``'{'``, the message
format string is assumed to be compatible with :meth:`str.format` (using
-keyword arguments), while if the style is '$' then the message format string
+keyword arguments), while if the style is ``'$'`` then the message format string
should conform to what is expected by :meth:`string.Template.substitute`.
.. versionchanged:: 3.2