We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
repack
1 parent 0832528 commit f20ec5dCopy full SHA for f20ec5d
1 file changed
Doc/library/zipfile.rst
@@ -542,7 +542,7 @@ ZipFile Objects
542
strict_descriptor=False[, chunk_size])
543
544
Rewrites the archive to remove stale local file entries, shrinking its file
545
- size.
+ size. The archive must be opened with mode ``'a'``.
546
547
If *removed* is provided, it must be a sequence of :class:`ZipInfo` objects
548
representing removed entries; only their corresponding local file entries
@@ -571,8 +571,6 @@ ZipFile Objects
571
*chunk_size* may be specified to control the buffer size when moving
572
entry data (default is 1 MiB).
573
574
- The archive must be opened with mode ``'a'``.
575
-
576
Calling :meth:`repack` on a closed ZipFile will raise a :exc:`ValueError`.
577
578
.. versionadded:: next
0 commit comments