Skip to content

Commit c1902c3

Browse files
committed
fix up in logging.rst and string.rst
1 parent 2579632 commit c1902c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/library/logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ empty string, all events are passed.
828828

829829
.. method:: filter(record)
830830

831-
Is the specified record to be logged? Returns false for no, true for
831+
Is the specified record to be logged? Returns ``False`` for no, ``True`` for
832832
yes. Filters can either modify log records in-place or return a completely
833833
different record instance which will replace the original
834834
log record in any future processing of the event.

Doc/library/string.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ See also the :ref:`formatspec` section.
237237
The *field_name* itself begins with an *arg_name* that is either a number or a
238238
keyword. If it's a number, it refers to a positional argument, and if it's a keyword,
239239
it refers to a named keyword argument. An *arg_name* is treated as a number if
240-
a call to :meth:`str.isdecimal` on the string would return true.
240+
a call to :meth:`str.isdecimal` on the string would return ``True``.
241241
If the numerical arg_names in a format string
242242
are 0, 1, 2, ... in sequence, they can all be omitted (not just some)
243243
and the numbers 0, 1, 2, ... will be automatically inserted in that order.
@@ -858,7 +858,7 @@ these rules. The methods of :class:`Template` are:
858858

859859
.. method:: is_valid()
860860

861-
Returns false if the template has invalid placeholders that will cause
861+
Returns ``False`` if the template has invalid placeholders that will cause
862862
:meth:`substitute` to raise :exc:`ValueError`.
863863

864864
.. versionadded:: 3.11

0 commit comments

Comments
 (0)