Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit516fe12

Browse files
committed
Remove unneeded seek
- The seek will be automatically called in `ZipFile.close`.
1 parent1d188cd commit516fe12

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
ifzinfo.filenameinself.NameToInfo:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp