Message151536
| 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: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 |
|