Skip to content

[3.7] bpo-38738: Fix formatting of True and False. (GH-17083)#17128

Merged
serhiy-storchaka merged 1 commit into
python:3.7from
serhiy-storchaka:backport-138ccbb-3.7
Nov 12, 2019
Merged

[3.7] bpo-38738: Fix formatting of True and False. (GH-17083)#17128
serhiy-storchaka merged 1 commit into
python:3.7from
serhiy-storchaka:backport-138ccbb-3.7

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Nov 12, 2019

  • "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 " is replaced with "Return ".
    (cherry picked from commit 138ccbb)

https://bugs.python.org/issue38738

* "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>"..
(cherry picked from commit 138ccbb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants