Skip to content

Commit 0a39a18

Browse files
[3.13] Docs: use boolean constants for returning boolean value (GH-133325) (GH-133761)
(cherry picked from commit 076004a) Co-authored-by: Yongzi Li <[email protected]>
1 parent b812cdd commit 0a39a18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@ expression support in the :mod:`re` module).
18761876

18771877
.. method:: str.isprintable()
18781878

1879-
Return true if all characters in the string are printable, false if it
1879+
Return ``True`` if all characters in the string are printable, ``False`` if it
18801880
contains at least one non-printable character.
18811881

18821882
Here "printable" means the character is suitable for :func:`repr` to use in

Doc/library/string.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ these rules. The methods of :class:`Template` are:
845845

846846
.. method:: is_valid()
847847

848-
Returns false if the template has invalid placeholders that will cause
848+
Returns ``False`` if the template has invalid placeholders that will cause
849849
:meth:`substitute` to raise :exc:`ValueError`.
850850

851851
.. versionadded:: 3.11

0 commit comments

Comments
 (0)