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 ronaldoussoren
Recipients Fcscanf, ronaldoussoren
Date 2021-02-26.09:15:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614330947.14.0.173255444997.issue43326@roundup.psfhosted.org>
In-reply-to
Content
I'm not sure what you are asking here.

Looking at the screenshot I'd say that the zipfile you are trying to extract contains files with a newline in their name. That's a perfectly valid (although annoying) name on unix-y platforms. 

The zipfile module does not have an API for rewriting the file name when extracting. It is far from clear to me that adding such a API would be generally useful. 

Emulating this is fairly easy though, something like:

zf = zipfile.ZipFile(...)
for name in zf.namelist():
    stream = zf.open(name)
    data = stream.read()
    stream.close()
    with open(name.replace(...), "w") as stream:
        stream.write(data)
History
Date User Action Args
2021-02-26 09:15:47ronaldoussorensetrecipients: + ronaldoussoren, Fcscanf
2021-02-26 09:15:47ronaldoussorensetmessageid: <1614330947.14.0.173255444997.issue43326@roundup.psfhosted.org>
2021-02-26 09:15:47ronaldoussorenlinkissue43326 messages
2021-02-26 09:15:47ronaldoussorencreate