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:
Serhiy Storchaka 2019-11-12 16:57:03 +02:00 committed by GitHub
parent 9a13a388f2
commit 138ccbb022
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 176 additions and 176 deletions

View file

@ -263,8 +263,8 @@ StreamWriter
.. method:: can_write_eof()
Return *True* if the underlying transport supports
the :meth:`write_eof` method, *False* otherwise.
Return ``True`` if the underlying transport supports
the :meth:`write_eof` method, ``False`` otherwise.
.. method:: write_eof()