8000 Remove unneeded seek · python/cpython@3911f21 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3911f21

Browse files
committed
Remove unneeded seek
- The seek will be automatically called in `ZipFile.close`.
1 parent 18172c2 commit 3911f21

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
@@ -2022,9 +2022,6 @@ def _remove_members(self, members, *, remove_physical=True, chunk_size=2**20):
20222022
self.start_dir -= entry_offset
20232023
self._didModify = True
20242024

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

0 commit comments

Comments
 (0)
0