Issue #19795: Mark up True and False as literal text instead of bold. · pythoncapi/cpython@a97cd2e · GitHub
Skip to content

Commit a97cd2e

Browse files
Issue python#19795: Mark up True and False as literal text instead of bold.
1 parent ecf41da commit a97cd2e

9 files changed

Lines changed: 16 additions & 16 deletions

File tree

Doc/howto/logging.rst

Lines changed: 3 additions & 3 deletions

Doc/library/logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ is the module's name in the Python package namespace.
296296

297297
Finds the caller's source filename and line number. Returns the filename, line
298298
number, function name and stack information as a 4-element tuple. The stack
299-
information is returned as ``None`` unless *stack_info* is *True*.
299+
information is returned as ``None`` unless *stack_info* is ``True``.
300300

301301

302302
.. method:: Logger.handle(record)

Doc/library/shelve.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ lots of shared sub-objects. The keys are ordinary strings.
3131
Because of Python semantics, a shelf cannot know when a mutable
3232
persistent-dictionary entry is modified. By default modified objects are
3333
written *only* when assigned to the shelf (see :ref:`shelve-example`). If the
34-
optional *writeback* parameter is set to *True*, all entries accessed are also
34+
optional *writeback* parameter is set to ``True``, all entries accessed are also
3535
cached in memory, and written back on :meth:`~Shelf.sync` and
3636
:meth:`~Shelf.close`; this can make it handier to mutate mutable entries in
3737
the persistent dictionary, but, if many entries are accessed, it can consume

Doc/library/subprocess.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ functions.
347347
manner described in :ref:`converting-argument-sequence`. This is because
348348
the underlying ``CreateProcess()`` operates on strings.
349349

350-
The *shell* argument (which defaults to *False*) specifies whether to use
351-
the shell as the program to execute. If *shell* is *True*, it is
350+
The *shell* argument (which defaults to ``False``) specifies whether to use
351+
the shell as the program to execute. If *shell* is ``True``, it is
352352
recommended to pass *args* as a string rather than as a sequence.
353353

354354
On POSIX with ``shell=True``, the shell defaults to :file:`/bin/sh`. If

Doc/library/urllib.parse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ task isn't already covered by the URL parsing functions above.
543543
When a sequence of two-element tuples is used as the *query*
544544
argument, the first element of each tuple is a key and the second is a
545545
value. The value element in itself can be a sequence and in that case, if
546-
the optional parameter *doseq* is evaluates to *True*, individual
546+
the optional parameter *doseq* is evaluates to ``True``, individual
547547
``key=value`` pairs separated by ``'&'`` are generated for each element of
548548
the value sequence for the key. The order of parameters in the encoded
549549
string will match the order of parameter tuples in the sequence.

Doc/library/xml.etree.elementtree.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ ElementTree Objects
928928
*method* is either ``"xml"``, ``"html"`` or ``"text"`` (default is
929929
``"xml"``).
930930
The keyword-only *short_empty_elements* parameter controls the formatting
931-
of elements that contain no content. If *True* (the default), they are
931+
of elements that contain no content. If ``True`` (the default), they are
932932
emitted as a single self-closed tag, otherwise they are emitted as a pair
933933
of start/end tags.
934934

Doc/library/xml.sax.utils.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ or as base classes.
6363
should be a file-like object which will default to *sys.stdout*. *encoding* is
6464
the encoding of the output stream which defaults to ``'iso-8859-1'``.
6565
*short_empty_elements* controls the formatting of elements that contain no
66-
content: if *False* (the default) they are emitted as a pair of start/end
67-
tags, if set to *True* they are emitted as a single self-closed tag.
66+
content: if ``False`` (the default) they are emitted as a pair of start/end
67+
tags, if set to ``True`` they are emitted as a single self-closed tag.
6868

6969
.. versionadded:: 3.2
7070
The *short_empty_elements* parameter.

Doc/whatsnew/3.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,5 +548,5 @@ that may require changes to your code:
548548

549549
* The automatic name remapping in the pickle module for protocol 2 or lower can
550550
make Python 3.1 pickles unreadable in Python 3.0. One solution is to use
551-
protocol 3. Another solution is to set the *fix_imports* option to **False**.
551+
protocol 3. Another solution is to set the *fix_imports* option to *``False``*.
552552
See the discussion above for more details.

Doc/whatsnew/3.2.rst

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)