[Python-checkins] cpython: Add a single versionadded for a whole section instead of repeating for every

georg.brandl python-checkins at python.org
Sun Jun 24 18:09:47 CEST 2012


http://hg.python.org/cpython/rev/c0a41e60e591
changeset:   77727:c0a41e60e591
user:        Georg Brandl <georg at python.org>
date:        Sun Jun 24 18:09:40 2012 +0200
summary:
  Add a single versionadded for a whole section instead of repeating for every function.

files:
  Doc/library/shutil.rst |  22 ++++------------------
  1 files changed, 4 insertions(+), 18 deletions(-)


diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -306,7 +306,7 @@
 .. _shutil-copytree-example:
 
 copytree example
-::::::::::::::::
+~~~~~~~~~~~~~~~~
 
 This example is the implementation of the :func:`copytree` function, described
 above, with the docstring omitted.  It demonstrates many of the other functions
@@ -370,6 +370,8 @@
 Archiving operations
 --------------------
 
+.. versionadded:: 3.2
+
 High-level utilities to create and read compressed and archived files are also
 provided.  They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
 
@@ -397,8 +399,6 @@
    *logger* must be an object compatible with :pep:`282`, usually an instance of
    :class:`logging.Logger`.
 
-   .. versionadded:: 3.2
-
 
 .. function:: get_archive_formats()
 
@@ -415,8 +415,6 @@
    You can register new formats or provide your own archiver for any existing
    formats, by using :func:`register_archive_format`.
 
-   .. versionadded:: 3.2
-
 
 .. function:: register_archive_format(name, function, [extra_args, [description]])
 
@@ -429,15 +427,11 @@
    *description* is used by :func:`get_archive_formats` which returns the
    list of archivers. Defaults to an empty list.
 
-   .. versionadded:: 3.2
-
 
 .. function:: unregister_archive_format(name)
 
    Remove the archive format *name* from the list of supported formats.
 
-   .. versionadded:: 3.2
-
 
 .. function:: unpack_archive(filename[, extract_dir[, format]])
 
@@ -452,8 +446,6 @@
    and see if an unpacker was registered for that extension. In case none is
    found, a :exc:`ValueError` is raised.
 
-   .. versionadded:: 3.2
-
 
 .. function:: register_unpack_format(name, extensions, function[, extra_args[, description]])
 
@@ -471,15 +463,11 @@
    *description* can be provided to describe the format, and will be returned
    by the :func:`get_unpack_formats` function.
 
-   .. versionadded:: 3.2
-
 
 .. function:: unregister_unpack_format(name)
 
    Unregister an unpack format. *name* is the name of the format.
 
-   .. versionadded:: 3.2
-
 
 .. function:: get_unpack_formats()
 
@@ -497,13 +485,11 @@
    You can register new formats or provide your own unpacker for any existing
    formats, by using :func:`register_unpack_format`.
 
-   .. versionadded:: 3.2
-
 
 .. _shutil-archiving-example:
 
 Archiving example
-:::::::::::::::::
+~~~~~~~~~~~~~~~~~
 
 In this example, we create a gzip'ed tar-file archive containing all files
 found in the :file:`.ssh` directory of the user::

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


More information about the Python-checkins mailing list