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 lars.gustaebel
Recipients Thomas Güttler, ethan.furman, guettli, lars.gustaebel, martin.panter
Date 2015-06-01.06:49:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433141379.05.0.547885412048.issue24259@psf.upfronthosting.co.za>
In-reply-to
Content
@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.
History
Date User Action Args
2015-06-01 06:49:39lars.gustaebelsetrecipients: + lars.gustaebel, guettli, ethan.furman, martin.panter, Thomas Güttler
2015-06-01 06:49:39lars.gustaebelsetmessageid: <1433141379.05.0.547885412048.issue24259@psf.upfronthosting.co.za>
2015-06-01 06:49:39lars.gustaebellinkissue24259 messages
2015-06-01 06:49:38lars.gustaebelcreate