[Python-checkins] cpython (merge 3.4 -> 3.5): Issue #25706: Fixed markup in the documentation.

serhiy.storchaka python-checkins at python.org
Mon Nov 23 09:46:13 EST 2015


https://hg.python.org/cpython/rev/f4918e98d085
changeset:   99314:f4918e98d085
branch:      3.5
parent:      99310:267d04459ba3
parent:      99313:a33d76465a18
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Mon Nov 23 16:43:54 2015 +0200
summary:
  Issue #25706: Fixed markup in the documentation.

files:
  Doc/c-api/arg.rst        |  2 +-
  Doc/library/base64.rst   |  4 ++--
  Doc/library/stdtypes.rst |  2 +-
  3 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
--- a/Doc/c-api/arg.rst
+++ b/Doc/c-api/arg.rst
@@ -322,7 +322,7 @@
       ``Py_CLEANUP_SUPPORTED`` was added.
 
 ``p`` (:class:`bool`) [int]
-   Tests the value passed in for truth (a boolean **p**\redicate) and converts
+   Tests the value passed in for truth (a boolean **p**\ redicate) and converts
    the result to its equivalent C true/false integer value.
    Sets the int to 1 if the expression was true and 0 if it was false.
    This accepts any valid Python value.  See :ref:`truth` for more
diff --git a/Doc/library/base64.rst b/Doc/library/base64.rst
--- a/Doc/library/base64.rst
+++ b/Doc/library/base64.rst
@@ -148,7 +148,7 @@
    instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This
    feature is not supported by the "standard" Ascii85 encoding.
 
-   *wrapcol* controls whether the output should have newline ('\n')
+   *wrapcol* controls whether the output should have newline (``'\n'``)
    characters added to it. If this is non-zero, each output line will be
    at most this many characters long.
 
@@ -161,7 +161,7 @@
    .. versionadded:: 3.4
 
 
-.. function:: a85decode(s, *, foldspaces=False, adobe=False, ignorechars=b' \t\n\r\v')
+.. function:: a85decode(s, *, foldspaces=False, adobe=False, ignorechars=b' \\t\\n\\r\\v')
 
    Decode an Ascii85 encoded byte string.
 
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2940,7 +2940,7 @@
 
    Return true if all bytes in the sequence are ASCII whitespace and the
    sequence is not empty, false otherwise.  ASCII whitespace characters are
-   those byte values in the sequence b' \t\n\r\x0b\f' (space, tab, newline,
+   those byte values in the sequence ``b' \t\n\r\x0b\f'`` (space, tab, newline,
    carriage return, vertical tab, form feed).
 
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list