[issue11981] dupe self.fp.tell() in zipfile.ZipFile.writestr

Ezio Melotti report at bugs.python.org
Thu May 5 13:36:42 CEST 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

Can you prove that the second one is useless (did it cause you any problem or did you just find it reading the source)?
There might be reasons why there are two calls to fp.tell() (e.g. the result is different in the two places and/or zinfo.header_offset is read/changed somewhere else between the two calls).

----------
nosy: +ezio.melotti

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11981>
_______________________________________


More information about the Python-bugs-list mailing list