Message100222
I found an issue that needs to be addressed: if there is an error while the TarFile object is opened for writing, we cannot simply call TarFile.close() in the __exit__() method. close() would try to finalize the archive, i.e. write two zero end-of-archive blocks and a number of padding blocks.
I changed __exit__() to call close() only if everything went fine. If there was an exception only the most basic cleanup is done.
I added more tests and adapted the docs. |
|
Date |
User |
Action |
Args |
2010-02-28 21:05:27 | lars.gustaebel | set | recipients:
+ lars.gustaebel, ezio.melotti, eric.araujo, r.david.murray, brian.curtin, meador.inge, jaime.buelta |
2010-02-28 21:05:27 | lars.gustaebel | set | messageid: <1267391127.7.0.971907729375.issue7232@psf.upfronthosting.co.za> |
2010-02-28 21:05:25 | lars.gustaebel | link | issue7232 messages |
2010-02-28 21:05:25 | lars.gustaebel | create | |
|