Skip to content

Commit 516fe12

Browse files
committed
Remove unneeded seek
- The seek will be automatically called in `ZipFile.close`.
1 parent 1d188cd commit 516fe12

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/zipfile/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,9 +2023,6 @@ def _remove_members(self, members, *, remove_physical=True, chunk_size=2**20):
20232023
self.start_dir -= entry_offset
20242024
self._didModify = True
20252025

2026-
# seek to the start of the central dir
2027-
fp.seek(self.start_dir)
2028-
20292026
def _writecheck(self, zinfo):
20302027
"""Check for errors before writing a file to the archive."""
20312028
if zinfo.filename in self.NameToInfo:

0 commit comments

Comments
 (0)