Message244572
@Martin:
This is actually a nice idea that I hadn't thought of. I updated the Python 3 patch to use a seek() that moves to one byte before the next header block, reads the remaining byte and raises an error if it hits eof. The code looks rather clean compared to the previous patch, and it should perform like it always did.
I am not quite sure about which exception type to use, ReadError is used in tarfile's header parsing code, but OSError is already used in tarfile.copyfileobj() and might be more like what the user expects. |
|
Date |
User |
Action |
Args |
2015-06-01 06:49:39 | lars.gustaebel | set | recipients:
+ lars.gustaebel, guettli, ethan.furman, martin.panter, Thomas Güttler |
2015-06-01 06:49:39 | lars.gustaebel | set | messageid: <1433141379.05.0.547885412048.issue24259@psf.upfronthosting.co.za> |
2015-06-01 06:49:39 | lars.gustaebel | link | issue24259 messages |
2015-06-01 06:49:38 | lars.gustaebel | create | |
|