Author serhiy.storchaka
Recipients alanmcintyre, proppy, serhiy.storchaka, terry.reedy
Date 2016-05-14.21:15:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463260510.85.0.910112842814.issue11980@psf.upfronthosting.co.za>
In-reply-to
Content
A more general feature is implemented in issue26039. Now you can write to ZIP archive the content of opened file object with following two lines:

        with zipf.open('file.txt', 'wb') as target:
            shutil.copyfileobj(source, target)
History
Date User Action Args
2016-05-14 21:15:10serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, alanmcintyre, proppy
2016-05-14 21:15:10serhiy.storchakasetmessageid: <1463260510.85.0.910112842814.issue11980@psf.upfronthosting.co.za>
2016-05-14 21:15:10serhiy.storchakalinkissue11980 messages
2016-05-14 21:15:10serhiy.storchakacreate