[issue19997] imghdr.what doesn't accept bytes paths
Claudiu.Popa
report at bugs.python.org
Tue Dec 17 12:14:26 CET 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue19997>
_______________________________________
More information about the Python-bugs-list
mailing list