Message265543
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) |
|
Date |
User |
Action |
Args |
2016-05-14 21:15:10 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, alanmcintyre, proppy |
2016-05-14 21:15:10 | serhiy.storchaka | set | messageid: <1463260510.85.0.910112842814.issue11980@psf.upfronthosting.co.za> |
2016-05-14 21:15:10 | serhiy.storchaka | link | issue11980 messages |
2016-05-14 21:15:10 | serhiy.storchaka | create | |
|