8000 Docs: use boolean constants for returning boolean value (GH-133325) · python/cpython@076004a · GitHub
[go: up one dir, main page]

Skip to content

Commit 076004a

Browse files
authored
Docs: use boolean constants for returning boolean value (GH-133325)
1 parent 2a630a3 commit 076004a

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
@@ -2012,7 +2012,7 @@ expression support in the :mod:`re` module).
20122012

20132013
.. method:: str.isprintable()
20142014

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

20182018
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
@@ -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)
0