This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author spoo
Recipients spoo
Date 2016-02-05.08:52:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454662355.53.0.48718125489.issue26293@psf.upfronthosting.co.za>
In-reply-to
Content
Example:

from zipfile import ZipFile
with open('a.zipp', 'wb') as base:
    base.write(b'old\n')
    with ZipFile(base, 'a') as myzip:
        myzip.write('eggs.txt')

If the embedded zip portion of the file is extracted (first four bytes deleted), some fields will be incorrect in the resultant file - commenting out line 3 produces a file that can serve as a comparison.  These differences cause issues opening with some zip library implementations.

My best guess is that this is related to this line: https://github.com/python/cpython/blob/master/Lib/zipfile.py#L1459
History
Date User Action Args
2016-02-05 08:52:35spoosetrecipients: + spoo
2016-02-05 08:52:35spoosetmessageid: <1454662355.53.0.48718125489.issue26293@psf.upfronthosting.co.za>
2016-02-05 08:52:35spoolinkissue26293 messages
2016-02-05 08:52:35spoocreate