Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bop-40105: fixed zip comment update
  • Loading branch information
yudilevi2 authored Apr 3, 2020
commit 59b03f0d36bc8315bcf8279cf6f1cad533453589
1 change: 1 addition & 0 deletions Lib/zipfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1919,6 +1919,7 @@ def _write_end_record(self):
centDirSize, centDirOffset, len(self._comment))
self.fp.write(endrec)
self.fp.write(self._comment)
self.fp.truncate()
self.fp.flush()

def _fpclose(self, fp):
Expand Down