From: Georg Brandl Date: Tue, 21 Dec 2010 17:58:06 +0000 (+0000) Subject: #10748: add versionchanged for non-trivial bugfix. X-Git-Tag: v2.7.2rc1~452 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da29acd96d0446839718d0596af84e4039f7c5c2;p=thirdparty%2FPython%2Fcpython.git #10748: add versionchanged for non-trivial bugfix. --- diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index 1a4201c4ad42..73af8ab16b10 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -123,9 +123,10 @@ ZipFile Objects and :program:`unzip` commands on Unix (the InfoZIP utilities) don't support these extensions. - If the file is created with mode ``'a'`` or ``'w'`` and then - :meth:`close`\ d without adding any files to the archive, the appropriate - ZIP structures for an empty archive will be written to the file. + .. versionchanged:: 2.7.1 + If the file is created with mode ``'a'`` or ``'w'`` and then + :meth:`close`\ d without adding any files to the archive, the appropriate + ZIP structures for an empty archive will be written to the file. ZipFile is also a context manager and therefore supports the :keyword:`with` statement. In the example, *myzip* is closed after the