From 8c16cb9f65bfc7d732bc6bd3f533856795a95690 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 25 Feb 2016 20:17:45 +0100 Subject: Closes #26435: fix syntax in directives. Thanks to Jakub Stasiak. --- Doc/distutils/apiref.rst | 6 +++--- Doc/library/email.charset.rst | 5 +++-- Doc/library/mmap.rst | 6 +++--- Doc/library/ossaudiodev.rst | 4 ++-- Doc/library/re.rst | 2 +- Doc/library/socket.rst | 6 +++--- Doc/library/ssl.rst | 2 +- Doc/library/stdtypes.rst | 6 +++--- Doc/using/cmdline.rst | 2 +- Lib/logging/__init__.py | 4 ++-- 10 files changed, 22 insertions(+), 21 deletions(-) diff --git a/Doc/distutils/apiref.rst b/Doc/distutils/apiref.rst index 554d2c8..6b2d5cb 100644 --- a/Doc/distutils/apiref.rst +++ b/Doc/distutils/apiref.rst @@ -876,7 +876,7 @@ tarballs or zipfiles. archive. *root_dir* and *base_dir* both default to the current directory. Returns the name of the archive file. - .. versionchanged: 3.5 + .. versionchanged:: 3.5 Added support for the ``xztar`` format. @@ -891,7 +891,7 @@ tarballs or zipfiles. compression extension (``.gz``, ``.bz2``, ``.xz`` or ``.Z``). Return the output filename. - .. versionchanged: 3.5 + .. versionchanged:: 3.5 Added support for the ``xz`` compression. @@ -1234,7 +1234,7 @@ other utility module. ` in their name, in a :file:`__pycache__` subdirectory instead of files without tag in the current directory. - .. versionchanged: 3.5 + .. versionchanged:: 3.5 Create ``.pyc`` files according to :pep:`488`. diff --git a/Doc/library/email.charset.rst b/Doc/library/email.charset.rst index 80ef3d6..c0fab8f 100644 --- a/Doc/library/email.charset.rst +++ b/Doc/library/email.charset.rst @@ -101,9 +101,10 @@ Import this class from the :mod:`email.charset` module. returns the string ``base64`` if *body_encoding* is ``BASE64``, and returns the string ``7bit`` otherwise. + .. XXX to_splittable and from_splittable are not there anymore! - .. method to_splittable(s) + .. to_splittable(s) Convert a possibly multibyte string to a safely splittable format. *s* is the string to split. @@ -118,7 +119,7 @@ Import this class from the :mod:`email.charset` module. the Unicode replacement character ``'U+FFFD'``. - .. method from_splittable(ustr[, to_output]) + .. from_splittable(ustr[, to_output]) Convert a splittable string back into an encoded string. *ustr* is a Unicode string to "unsplit". diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst index b74a823..33baf2b 100644 --- a/Doc/library/mmap.rst +++ b/Doc/library/mmap.rst @@ -174,7 +174,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length Optional arguments *start* and *end* are interpreted as in slice notation. Returns ``-1`` on failure. - .. versionchanged: 3.5 + .. versionchanged:: 3.5 Writable :term:`bytes-like object` is now accepted. @@ -237,7 +237,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length Optional arguments *start* and *end* are interpreted as in slice notation. Returns ``-1`` on failure. - .. versionchanged: 3.5 + .. versionchanged:: 3.5 Writable :term:`bytes-like object` is now accepted. @@ -267,7 +267,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length were written. If the mmap was created with :const:`ACCESS_READ`, then writing to it will raise a :exc:`TypeError` exception. - .. versionchanged: 3.5 + .. versionchanged:: 3.5 Writable :term:`bytes-like object` is now accepted. diff --git a/Doc/library/ossaudiodev.rst b/Doc/library/ossaudiodev.rst index c60d596..211328f 100644 --- a/Doc/library/ossaudiodev.rst +++ b/Doc/library/ossaudiodev.rst @@ -155,7 +155,7 @@ and (read-only) attributes: data may not be written ---see :meth:`writeall`. - .. versionchanged: 3.5 + .. versionchanged:: 3.5 Writable :term:`bytes-like object` is now accepted. @@ -169,7 +169,7 @@ and (read-only) attributes: no return value, since the amount of data written is always equal to the amount of data supplied. - .. versionchanged: 3.5 + .. versionchanged:: 3.5 Writable :term:`bytes-like object` is now accepted. diff --git a/Doc/library/re.rst b/Doc/library/re.rst index a9f8161..1ef6c4e 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -297,7 +297,7 @@ The special characters are: >>> m.group(0) 'egg' - .. versionchanged: 3.5 + .. versionchanged:: 3.5 Added support for group references of fixed length. ``(?