This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients __starrify__, martin.panter
Date 2016-02-03.08:56:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454489817.07.0.0882804484831.issue26272@psf.upfronthosting.co.za>
In-reply-to
Content
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 :)
History
Date User Action Args
2016-02-03 08:56:57martin.pantersetrecipients: + martin.panter, __starrify__
2016-02-03 08:56:57martin.pantersetmessageid: <1454489817.07.0.0882804484831.issue26272@psf.upfronthosting.co.za>
2016-02-03 08:56:57martin.panterlinkissue26272 messages
2016-02-03 08:56:57martin.pantercreate