]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38738: Fix formatting of True and False. (GH-17083)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 12 Nov 2019 14:57:03 +0000 (16:57 +0200)
committerGitHub <noreply@github.com>
Tue, 12 Nov 2019 14:57:03 +0000 (16:57 +0200)
commit138ccbb02216ca086047c3139857fb44f3dab1f9
tree650ba3584d4d173fe36d757063909a09f239ebf2
parent9a13a388f202268dd7b771638adbec132449b98b
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>".
42 files changed:
Doc/library/asyncio-stream.rst
Doc/library/dataclasses.rst
Doc/library/dialog.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/hashlib.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