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 cjwatson
Recipients cjwatson
Date 2012-01-18.13:16:15
SpamBayes Score 3.0067922e-06
Marked as misclassified No
Message-id <1326892577.13.0.456815776311.issue13815@psf.upfronthosting.co.za>
In-reply-to
Content
The file-like object returned by TarFile.extractfile can't be wrapped in an io.TextIOWrapper (which would be rather convenient in some cases to get something that reads str rather than bytes).

The attached patch demonstrates the problem by way of a test case, and fixes it.  It's just a matter of adding a no-op flush method so that TextIOWrapper.close is happy with it.
History
Date User Action Args
2012-01-18 13:16:17cjwatsonsetrecipients: + cjwatson
2012-01-18 13:16:17cjwatsonsetmessageid: <1326892577.13.0.456815776311.issue13815@psf.upfronthosting.co.za>
2012-01-18 13:16:16cjwatsonlinkissue13815 messages
2012-01-18 13:16:16cjwatsoncreate