Skip to content

Commit 01b493e

Browse files
committed
gh-51067: Fix docstring typos in _ZipRepacker
1 parent 645910a commit 01b493e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/zipfile/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ def repack(self, zfile, removed=None):
14181418
14191419
2. Data before the first referenced entry is stripped only when it
14201420
appears to be a sequence of consecutive entries with no extra
1421-
following bytes; extra preceeding bytes are preserved.
1421+
following bytes; extra preceding bytes are preserved.
14221422
14231423
3. Data between referenced entries is stripped only when it appears to
14241424
be a sequence of consecutive entries with no extra preceding bytes;
@@ -2394,7 +2394,7 @@ def repack(self, removed=None, *, strict_descriptor=True, chunk_size=2**20):
23942394
"""Repack a zip file, removing non-referenced file entries.
23952395
23962396
The archive must be opened with mode 'a', as mode 'w'/'x' do not
2397-
truncate the file when closed. This cannot be simplely changed as
2397+
truncate the file when closed. This cannot be simply changed as
23982398
they may be used on an unseekable file buffer, which disallows
23992399
truncation."""
24002400
if self.mode != 'a':

0 commit comments

Comments
 (0)