mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
#10748: add versionchanged for non-trivial bugfix.
This commit is contained in:
parent
e321259c38
commit
da29acd96d
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue