Claudiu.Popa added the comment: Thanks, Vajrasky, I forgot about the fact that open can open file descriptors. Here's a patch which fixes this, also adds a test for BytesIO and uses os.fsencode instead of .encode().
---------- Added file: http://bugs.python.org/file33174/imghdr_files.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19997> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com