Fix a few scoping issues with versionadded/versionchanged directives.
authorGeorg Brandl <georg@python.org>
Mon, 24 Mar 2014 08:06:18 +0000 (09:06 +0100)
committerGeorg Brandl <georg@python.org>
Mon, 24 Mar 2014 08:06:18 +0000 (09:06 +0100)
12 files changed:
Doc/c-api/exceptions.rst
Doc/c-api/object.rst
Doc/library/doctest.rst
Doc/library/faulthandler.rst
Doc/library/functions.rst
Doc/library/imaplib.rst
Doc/library/imp.rst
Doc/library/importlib.rst
Doc/library/multiprocessing.rst
Doc/library/optparse.rst
Doc/library/sys.rst
Doc/library/urllib.request.rst

index 7067448b465a7cd9a42e223a803619021dd7d0b4..6fda191d2f42d4c374f207f44ba9beb57f9519d5 100644 (file)
@@ -247,7 +247,7 @@ in various ways.  There is a separate error indicator for each thread.
    filename object, for raising errors when a function that takes two filenames
    fails.
 
-.. versionadded:: 3.4
+   .. versionadded:: 3.4
 
 
 .. c:function:: PyObject* PyErr_SetFromErrnoWithFilename(PyObject *type, const char *filename)
@@ -295,7 +295,7 @@ in various ways.  There is a separate error indicator for each thread.
    but accepts a second filename object.
    Availability: Windows.
 
-.. versionadded:: 3.4
+   .. versionadded:: 3.4
 
 
 .. c:function:: PyObject* PyErr_SetExcFromWindowsErrWithFilename(PyObject *type, int ierr, const char *filename)
@@ -321,7 +321,7 @@ in various ways.  There is a separate error indicator for each thread.
    attributes, which make the exception printing subsystem think the exception
    is a :exc:`SyntaxError`.
 
-.. versionadded:: 3.4
+   .. versionadded:: 3.4
 
 
 .. c:function:: void PyErr_SyntaxLocationEx(char *filename, int lineno, int col_offset)
@@ -329,7 +329,7 @@ in various ways.  There is a separate error indicator for each thread.
    Like :c:func:`PyErr_SyntaxLocationObject`, but *filename* is a byte string
    decoded from the filesystem encoding (:func:`os.fsdecode`).
 
-.. versionadded:: 3.2
+   .. versionadded:: 3.2
 
 
 .. c:function:: void PyErr_SyntaxLocation(char *filename, int lineno)
index 509ca3f0fae302548843e2cb65adba0821e628a9..3e7c3b64c42274d160eb1f10c93a05e861fba940 100644 (file)
@@ -364,6 +364,7 @@ attribute is considered sufficient for this determination.
 
    .. versionadded:: 3.4
 
+
 .. c:function:: PyObject* PyObject_GetItem(PyObject *o, PyObject *key)
 
    Return element of *o* corresponding to the object *key* or *NULL* on failure.
index 28df49c7003600734b2d22d76f15c2ae4292b0df..50626e9b0ceef2c3da501eb99ba2226d7582a3f4 100644 (file)
@@ -502,7 +502,8 @@ or'ed together and passed to various functions.  The names can also be used in
 :ref:`doctest directives <doctest-directives>`, and may be passed to the
 doctest command line interface via the ``-o`` option.
 
-.. versionadded:: 3.4 the ``-o`` command line option
+.. versionadded:: 3.4
+   The ``-o`` command line option.
 
 The first group of options define test semantics, controlling aspects of how
 doctest decides whether actual output matches an example's expected output:
index 61bc503d8f365db9408e2fadf2f522479c454ae1..fb9ccf3a663ad2346372046cf0519322666be61e 100644 (file)
@@ -4,6 +4,8 @@
 .. module:: faulthandler
    :synopsis: Dump the Python traceback.
 
+.. versionadded:: 3.3
+
 This module contains functions to dump Python tracebacks explicitly, on a fault,
 after a timeout, or on a user signal. Call :func:`faulthandler.enable` to
 install fault handlers for the :const:`SIGSEGV`, :const:`SIGFPE`,
@@ -36,8 +38,6 @@ alternatively be passed to :func:`faulthandler.enable`.
 The module is implemented in C, so tracebacks can be dumped on a crash or when
 Python is deadlocked.
 
-.. versionadded:: 3.3
-
 
 Dump the traceback
 ------------------
index 2b3706917803f757f7868214a476a582a6e30da2..9a8c9d774e8657ee4c6b8514903ae23bda8151fa 100644 (file)
@@ -832,6 +832,7 @@ are always available.  They are listed here in alphabetical order.
    .. versionadded:: 3.4
       The *default* keyword-only argument.
 
+
 .. function:: next(iterator[, default])
 
    Retrieve the next item from the *iterator* by calling its
index 39f691960eeb3a6df6bc3be65c7261c03b200f20..fa736fe3af44924fa6fb641bfc881a735a7260b7 100644 (file)
@@ -451,6 +451,7 @@ An :class:`IMAP4` instance has the following methods:
       :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see
       :data:`ssl.HAS_SNI`).
 
+
 .. method:: IMAP4.status(mailbox, names)
 
    Request named status conditions for *mailbox*.
index 8f0b79f332066f62605ffb0bfc16f096c3f55188..ed4820e64059123fef682d894249c40efe837a57 100644 (file)
@@ -262,12 +262,12 @@ that circular imports work without any deadlocks.
    exception is made for circular imports, which by construction have to
    expose an incomplete module object at some point.
 
-.. versionchanged:: 3.3
-   The locking scheme has changed to per-module locks for
-   the most part.  A global import lock is kept for some critical tasks,
-   such as initializing the per-module locks.
+   .. versionchanged:: 3.3
+      The locking scheme has changed to per-module locks for
+      the most part.  A global import lock is kept for some critical tasks,
+      such as initializing the per-module locks.
 
-.. deprecated:: 3.4
+   .. deprecated:: 3.4
 
 
 .. function:: acquire_lock()
@@ -282,12 +282,12 @@ that circular imports work without any deadlocks.
 
    On platforms without threads, this function does nothing.
 
-.. versionchanged:: 3.3
-   The locking scheme has changed to per-module locks for
-   the most part.  A global import lock is kept for some critical tasks,
-   such as initializing the per-module locks.
+   .. versionchanged:: 3.3
+      The locking scheme has changed to per-module locks for
+      the most part.  A global import lock is kept for some critical tasks,
+      such as initializing the per-module locks.
 
-.. deprecated:: 3.4
+   .. deprecated:: 3.4
 
 
 .. function:: release_lock()
@@ -295,12 +295,12 @@ that circular imports work without any deadlocks.
    Release the interpreter's global import lock. On platforms without
    threads, this function does nothing.
 
-.. versionchanged:: 3.3
-   The locking scheme has changed to per-module locks for
-   the most part.  A global import lock is kept for some critical tasks,
-   such as initializing the per-module locks.
+   .. versionchanged:: 3.3
+      The locking scheme has changed to per-module locks for
+      the most part.  A global import lock is kept for some critical tasks,
+      such as initializing the per-module locks.
 
-.. deprecated:: 3.4
+   .. deprecated:: 3.4
 
 
 The following constants with integer values, defined in this module, are used
index 3b55b06ec096a3662ab7dfe7a5e63d84cbf91c3f..f3b206311a130ce6d871163e2f40cfcaeda202f4 100644 (file)
@@ -626,8 +626,8 @@ ABC hierarchy::
            have to implement it, but it is still available for compatibility
            purposes. Raise :exc:`IOError` if the path cannot be handled.
 
-          .. versionchanged:: 3.4
-             Raise :exc:`IOError` instead of :exc:`NotImplementedError`.
+        .. versionchanged:: 3.4
+           Raise :exc:`IOError` instead of :exc:`NotImplementedError`.
 
     .. method:: set_data(path, data)
 
index b303e163247fcaa3f341e060b24b9d3364f676d8..5fac730801761f47a55d9564624fa15e66cda6e9 100644 (file)
@@ -138,9 +138,9 @@ to start a process.  These *start methods* are
 
 .. versionchanged:: 3.4
    *spawn* added on all unix platforms, and *forkserver* added for
-     some unix platforms.
+   some unix platforms.
    Child processes no longer inherit all of the parents inheritable
-     handles on Windows.
+   handles on Windows.
 
 On Unix using the *spawn* or *forkserver* start methods will also
 start a *semaphore tracker* process which tracks the unlinked named
index 13395b636d443cd0809b84fab6efd000240fb843..72145aa59b5fb580795c591fcf6ce4fba97c00b4 100644 (file)
@@ -8,8 +8,8 @@
 .. sectionauthor:: Greg Ward <gward@python.net>
 
 .. deprecated:: 3.2
-  The :mod:`optparse` module is deprecated and will not be developed further;
-  development will continue with the :mod:`argparse` module.
+   The :mod:`optparse` module is deprecated and will not be developed further;
+   development will continue with the :mod:`argparse` module.
 
 **Source code:** :source:`Lib/optparse.py`
 
index 7dc1d783028c53f66d8562fd0303f4f668700acd..2328a105d6590fd91685bab866eee80a7cf074c1 100644 (file)
@@ -12,11 +12,12 @@ always available.
 
 .. data:: abiflags
 
-   On POSIX systems where Python is build with the standard ``configure``
+   On POSIX systems where Python was built with the standard ``configure``
    script, this contains the ABI flags as specified by :pep:`3149`.
 
    .. versionadded:: 3.2
 
+
 .. data:: argv
 
    The list of command line arguments passed to a Python script. ``argv[0]`` is the
index 6ac90818dc69cdc38a4d434abe2db07491ae3b69..019f59cfbc25b7454578182efea48b776e718ca4 100644 (file)
@@ -523,9 +523,10 @@ request.
    Return a list of tuples (header_name, header_value) of the Request headers.
 
 .. versionchanged:: 3.4
-  Request methods add_data, has_data, get_data, get_type, get_host,
-  get_selector, get_origin_req_host and is_unverifiable deprecated since 3.3
-  have been removed.
+   The request methods add_data, has_data, get_data, get_type, get_host,
+   get_selector, get_origin_req_host and is_unverifiable that were deprecated
+   since 3.3 have been removed.
+
 
 .. _opener-director-objects: