Skip to content

Commit 75ab0a3

Browse files
committed
Revise doc for repack
1 parent 092f98b commit 75ab0a3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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])`

0 commit comments

Comments
 (0)