Skip to content

Commit f20ec5d

Browse files
committed
Revise doc for repack
1 parent 0832528 commit f20ec5d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Doc/library/zipfile.rst

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

0 commit comments

Comments
 (0)