Message259461
I think you are only meant to pass in a “binary” (bytes) file object. Maybe BufferedIOBase, I’m not sure. The documentation doesn’t seem to make this very clear though. Can you suggest an improvement?
Open the file with
a = open("testfile.zip", "rb")
and all should be well :) |
|
Date |
User |
Action |
Args |
2016-02-03 08:56:57 | martin.panter | set | recipients:
+ martin.panter, __starrify__ |
2016-02-03 08:56:57 | martin.panter | set | messageid: <1454489817.07.0.0882804484831.issue26272@psf.upfronthosting.co.za> |
2016-02-03 08:56:57 | martin.panter | link | issue26272 messages |
2016-02-03 08:56:57 | martin.panter | create | |
|