Message235810
Using fileobj=sys.stdin.buffer instead should do the trick. The “tarfile” module would expect a binary stream, not a text stream.
Given the documentation currently says, “Use this variant in combination with e.g. sys.stdin, . . .”, I presume that is why you were using plain stdin. The documentation should be clarified. |
|
Date |
User |
Action |
Args |
2015-02-12 11:30:06 | martin.panter | set | recipients:
+ martin.panter, chaica_, docs@python |
2015-02-12 11:30:06 | martin.panter | set | messageid: <1423740606.52.0.128608873869.issue23453@psf.upfronthosting.co.za> |
2015-02-12 11:30:06 | martin.panter | link | issue23453 messages |
2015-02-12 11:30:06 | martin.panter | create | |
|