summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-12-21 17:58:06 (GMT)
committerGeorg Brandl <georg@python.org>2010-12-21 17:58:06 (GMT)
commitda29acd96d0446839718d0596af84e4039f7c5c2 (patch)
tree77297768342a5d39f65b7d5fd072fb2ef3768f6c /Doc/library
parente321259c38e9a9cb9e33f2c712f73234b8afb057 (diff)
downloadcpython-da29acd96d0446839718d0596af84e4039f7c5c2.zip
cpython-da29acd96d0446839718d0596af84e4039f7c5c2.tar.gz
cpython-da29acd96d0446839718d0596af84e4039f7c5c2.tar.bz2
#10748: add versionchanged for non-trivial bugfix.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/zipfile.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index 1a4201c..73af8ab 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