Message151536
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. |
|
Date |
User |
Action |
Args |
2012-01-18 13:16:17 | cjwatson | set | recipients:
+ cjwatson |
2012-01-18 13:16:17 | cjwatson | set | messageid: <1326892577.13.0.456815776311.issue13815@psf.upfronthosting.co.za> |
2012-01-18 13:16:16 | cjwatson | link | issue13815 messages |
2012-01-18 13:16:16 | cjwatson | create | |
|