]> granicus.if.org Git - python/commitdiff
Issue #19795: Mark up True and False as literal text instead of bold.
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 19 Oct 2016 13:43:18 +0000 (16:43 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 19 Oct 2016 13:43:18 +0000 (16:43 +0300)
Doc/howto/logging.rst
Doc/library/argparse.rst
Doc/library/cmath.rst
Doc/library/shelve.rst
Doc/library/subprocess.rst
Doc/library/urllib.rst

index 6b17b088cded00bafb2dfea62082013ca0ed8ca7..698007a5821c83d5a1f0f301ce8b4afed5fca83e 100644 (file)
@@ -464,7 +464,7 @@ ancestor loggers. Because of this, it is unnecessary to define and configure
 handlers for all the loggers an application uses. It is sufficient to
 configure handlers for a top-level logger and create child loggers as needed.
 (You can, however, turn off propagation by setting the *propagate*
-attribute of a logger to *False*.)
+attribute of a logger to ``False``.)
 
 
 .. _handler-basic:
@@ -737,10 +737,10 @@ circumstances is dependent on the Python version.
 
 For Python 2.x, the behaviour is as follows:
 
-* If *logging.raiseExceptions* is *False* (production mode), the event is
+* If *logging.raiseExceptions* is ``False`` (production mode), the event is
   silently dropped.
 
-* If *logging.raiseExceptions* is *True* (development mode), a message
+* If *logging.raiseExceptions* is ``True`` (development mode), a message
   'No handlers could be found for logger X.Y.Z' is printed once.
 
 .. _library-config:
index f271d7392931df0f724af0be5c6b444afea62854..4ce683547fe0ac5106c0be95c025b20ada3af074 100644 (file)
@@ -695,7 +695,7 @@ how the command-line arguments should be handled. The supplied actions are:
 
 * ``'store_true'`` and ``'store_false'`` - These are special cases of
   ``'store_const'`` using for storing the values ``True`` and ``False``
-  respectively.  In addition, they create default values of *False* and *True*
+  respectively.  In addition, they create default values of ``False`` and ``True``
   respectively.  For example::
 
     >>> parser = argparse.ArgumentParser()
index 0a0568689168bc8c36e37333086be3a00863888c..fffdc9fe06cd46a5cd9a1570dae91d1515d7b424 100644 (file)
@@ -207,7 +207,7 @@ Classification functions
 
 .. function:: isinf(x)
 
-   Return *True* if the real or the imaginary part of x is positive
+   Return ``True`` if the real or the imaginary part of x is positive
    or negative infinity.
 
    .. versionadded:: 2.6
@@ -215,7 +215,7 @@ Classification functions
 
 .. function:: isnan(x)
 
-   Return *True* if the real or imaginary part of x is not a number (NaN).
+   Return ``True`` if the real or imaginary part of x is not a number (NaN).
 
    .. versionadded:: 2.6
 
index 4058c3407f69c4eed1e62c928acaeca607c747d7..657411fb777f49d843b73b366d6242cfb57f3b52 100644 (file)
@@ -35,7 +35,7 @@ lots of shared  sub-objects.  The keys are ordinary strings.
    Because of Python semantics, a shelf cannot know when a mutable
    persistent-dictionary entry is modified.  By default modified objects are
    written *only* when assigned to the shelf (see :ref:`shelve-example`).  If the
-   optional *writeback* parameter is set to *True*, all entries accessed are also
+   optional *writeback* parameter is set to ``True``, all entries accessed are also
    cached in memory, and written back on :meth:`~Shelf.sync` and
    :meth:`~Shelf.close`; this can make it handier to mutate mutable entries in
    the persistent dictionary, but, if many entries are accessed, it can consume
index 1bb3ac10cd4a9191d94ef04393220ce947242ee1..284cf4465aac7f2d0e25a8e7e078f6857066b7ab 100644 (file)
@@ -320,8 +320,8 @@ functions.
    manner described in :ref:`converting-argument-sequence`.  This is because
    the underlying ``CreateProcess()`` operates on strings.
 
-   The *shell* argument (which defaults to *False*) specifies whether to use
-   the shell as the program to execute.  If *shell* is *True*, it is
+   The *shell* argument (which defaults to ``False``) specifies whether to use
+   the shell as the program to execute.  If *shell* is ``True``, it is
    recommended to pass *args* as a string rather than as a sequence.
 
    On Unix with ``shell=True``, the shell defaults to :file:`/bin/sh`.  If
index bddcba9e38c1f20e89838b93a2444c76859a9ba5..69ef8f751968b860ed3effaac8bba68b3287b820 100644 (file)
@@ -263,7 +263,7 @@ Utility functions
    two-element tuples is used as the *query* argument, the first element of
    each tuple is a key and the second is a value. The value element in itself
    can be a sequence and in that case, if the optional parameter *doseq* is
-   evaluates to *True*, individual ``key=value`` pairs separated by ``'&'`` are
+   evaluates to ``True``, individual ``key=value`` pairs separated by ``'&'`` are
    generated for each element of the value sequence for the key.  The order of
    parameters in the encoded string will match the order of parameter tuples in
    the sequence. The :mod:`urlparse` module provides the functions