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 @@ -29,7 +29,7 @@ This package extends `zipfile` with `remove`-related functionalities.
2929* ` ZipFile.repack(removed=None, *, strict_descriptor=False[, chunk_size]) `
3030
3131 Rewrites the archive to remove stale local file entries, shrinking its file
32- size.
32+ size. The archive must be opened with mode `` 'a' `` .
3333
3434 If * removed* is provided, it must be a sequence of ` ZipInfo ` objects
3535 representing removed entries; only their corresponding local file entries
@@ -58,8 +58,6 @@ This package extends `zipfile` with `remove`-related functionalities.
5858 * chunk_size* may be specified to control the buffer size when moving
5959 entry data (default is 1 MiB).
6060
61- The archive must be opened with mode `` 'a' `` .
62-
6361 Calling ` repack ` on a closed ZipFile will raise a ` ValueError ` .
6462
6563* ` ZipFile.copy(zinfo_or_arcname, new_arcname[, chunk_size]) `
You can’t perform that action at this time.
0 commit comments