Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1889)

Unified Diff: Lib/zipfile.py

Issue 11981: dupe self.fp.tell() in zipfile.ZipFile.writestr
Patch Set: Created 2 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/zipfile.py Mon May 02 12:31:17 2011 -0400
+++ b/Lib/zipfile.py Mon May 02 18:50:32 2011 +0200
@@ -1179,7 +1179,6 @@
zinfo.compress_size = len(data) # Compressed size
else:
zinfo.compress_size = zinfo.file_size
- zinfo.header_offset = self.fp.tell() # Start of header data
self.fp.write(zinfo.FileHeader())
self.fp.write(data)
self.fp.flush()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7