File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -542,7 +542,7 @@ ZipFile Objects
542542 strict_descriptor=False[, chunk_size])
543543
544544 Rewrites the archive to remove stale local file entries, shrinking its file
545- size.
545+ size. The archive must be opened with mode `` 'a' ``.
546546
547547 If *removed * is provided, it must be a sequence of :class: `ZipInfo ` objects
548548 representing removed entries; only their corresponding local file entries
@@ -571,8 +571,6 @@ ZipFile Objects
571571 *chunk_size * may be specified to control the buffer size when moving
572572 entry data (default is 1 MiB).
573573
574- The archive must be opened with mode ``'a' ``.
575-
576574 Calling :meth: `repack ` on a closed ZipFile will raise a :exc: `ValueError `.
577575
578576 .. versionadded :: next
You can’t perform that action at this time.
0 commit comments