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: <[email protected]> |
| 2015-02-12 11:30:06 | martin.panter | link | issue23453 messages |
| 2015-02-12 11:30:06 | martin.panter | create | |
|