[issue26272] `zipfile.ZipFile` fails reading a file object in specific version(s)

2016-02-03 Thread Pengyu Chen
Pengyu Chen added the comment: Oh yes you're right Martin. Thanks for the notice :) (I've closed this ticket before seeing your reply) -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26272] `zipfile.ZipFile` fails reading a file object in specific version(s)

2016-02-03 Thread Pengyu Chen
New submission from Pengyu Chen: When passing a file object to `zipfile.ZipFile` for reading it fails in Python 3.5.1 it fails. While the same code in Python 2.7.11 works. Also loading that specific file directly from file path works in Python 3.5.1. (Please see the sample testing code below

[issue26272] `zipfile.ZipFile` fails reading a file object in specific version(s)

2016-02-03 Thread Pengyu Chen
Pengyu Chen added the comment: Well I should have noticed that I wasn't using binary mode.. Sorry for the mistake. Closing the issue report. -- status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.or