mirror of
https://github.com/python/cpython.git
synced 2025-08-25 11:15:02 +00:00
bpo-38738: Fix formatting of True and False. (GH-17083)
* "Return true/false" is replaced with "Return ``True``/``False``" if the function actually returns a bool. * Fixed formatting of some True and False literals (now in monospace). * Replaced "True/False" with "true/false" if it can be not only bool. * Replaced some 1/0 with True/False if it corresponds the code. * "Returns <bool>" is replaced with "Return <bool>".
This commit is contained in:
parent
9a13a388f2
commit
138ccbb022
42 changed files with 176 additions and 176 deletions
|
@ -1074,7 +1074,7 @@ import re
|
|||
|
||||
def IS_LINE_JUNK(line, pat=re.compile(r"\s*(?:#\s*)?$").match):
|
||||
r"""
|
||||
Return 1 for ignorable line: iff `line` is blank or contains a single '#'.
|
||||
Return True for ignorable line: iff `line` is blank or contains a single '#'.
|
||||
|
||||
Examples:
|
||||
|
||||
|
@ -1090,7 +1090,7 @@ def IS_LINE_JUNK(line, pat=re.compile(r"\s*(?:#\s*)?$").match):
|
|||
|
||||
def IS_CHARACTER_JUNK(ch, ws=" \t"):
|
||||
r"""
|
||||
Return 1 for ignorable character: iff `ch` is a space or tab.
|
||||
Return True for ignorable character: iff `ch` is a space or tab.
|
||||
|
||||
Examples:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue