]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17125)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 12 Nov 2019 16:54:10 +0000 (18:54 +0200)
committerGitHub <noreply@github.com>
Tue, 12 Nov 2019 16:54:10 +0000 (18:54 +0200)
commitd360346640e19231032b072216195484fa2450b4
tree3944c610d7a2b3cbe6a08fbd69ebdace8659a8a1
parent29fd6a77d509cffacc5691ebd9dab53455ad959e
[3.8] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17125)

* "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 138ccbb02216ca086047c3139857fb44f3dab1f9)
40 files changed:
Doc/library/asyncio-stream.rst
Doc/library/dataclasses.rst
Doc/library/difflib.rst
Doc/library/doctest.rst
Doc/library/email.compat32-message.rst
Doc/library/email.errors.rst
Doc/library/email.message.rst
Doc/library/fileinput.rst
Doc/library/functions.rst
Doc/library/gc.rst
Doc/library/http.cookiejar.rst
Doc/library/importlib.rst
Doc/library/inspect.rst
Doc/library/ipaddress.rst
Doc/library/keyword.rst
Doc/library/logging.handlers.rst
Doc/library/logging.rst
Doc/library/lzma.rst
Doc/library/msvcrt.rst
Doc/library/optparse.rst
Doc/library/os.rst
Doc/library/parser.rst
Doc/library/platform.rst
Doc/library/sched.rst
Doc/library/ssl.rst
Doc/library/stdtypes.rst
Doc/library/stringprep.rst
Doc/library/sys.rst
Doc/library/threading.rst
Doc/library/tkinter.ttk.rst
Doc/library/token.rst
Doc/library/unittest.mock.rst
Doc/library/venv.rst
Doc/library/wsgiref.rst
Doc/library/xml.dom.rst
Doc/library/xml.etree.elementtree.rst
Doc/tools/susp-ignored.csv
Doc/whatsnew/3.8.rst
Lib/difflib.py
Lib/tkinter/__init__.py