]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #16025: Minor corrections to the zipfile documentation.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Sat, 6 Oct 2012 15:10:01 +0000 (18:10 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Sat, 6 Oct 2012 15:10:01 +0000 (18:10 +0300)
Patch by Serhiy Storchaka.

1  2 
Doc/library/zipfile.rst
Lib/test/test_subprocess.py

index 498a9cda995037087e07e5fd7ac191dfb55cc185,264cd476bcf1b50531a3bd221ffd81208bcb133d..9f6e0777e7170c8491da06b93d2cce82ab3a0367
@@@ -87,30 -87,7 +87,30 @@@ The module defines the following items
  .. data:: ZIP_DEFLATED
  
     The numeric constant for the usual ZIP compression method.  This requires the
-    zlib module.
 -   :mod:`zlib` module.  No other compression methods are currently supported.
++   :mod:`zlib` module.
 +
 +
 +.. data:: ZIP_BZIP2
 +
 +   The numeric constant for the BZIP2 compression method.  This requires the
-    bz2 module.
++   :mod:`bz2` module.
 +
 +   .. versionadded:: 3.3
 +
 +.. data:: ZIP_LZMA
 +
 +   The numeric constant for the LZMA compression method.  This requires the
-    lzma module.
++   :mod:`lzma` module.
 +
 +   .. versionadded:: 3.3
 +
 +   .. note::
 +
 +      The ZIP file format specification has included support for bzip2 compression
 +      since 2001, and for LZMA compression since 2006. However, some tools
 +      (including older Python releases) do not support these compression
 +      methods, and may either refuse to process the ZIP file altogether,
 +      or fail to extract individual files.
  
  
  .. seealso::
@@@ -168,9 -143,6 +168,9 @@@ ZipFile Object
     .. versionadded:: 3.2
        Added the ability to use :class:`ZipFile` as a context manager.
  
-       Added support for :mod:`bzip2` and :mod:`lzma` compression.
 +   .. versionchanged:: 3.3
++      Added support for :mod:`bzip2 <bz2>` and :mod:`lzma` compression.
 +
  
  .. method:: ZipFile.close()
  
Simple merge