[issue19997] imghdr.what doesn't accept bytes paths

Serhiy Storchaka report at bugs.python.org
Sat Feb 22 20:11:46 CET 2014


Serhiy Storchaka added the comment:

I'm not sure imghdr.what() should support bytes path. The open() builtin, most os and os.path functions support string and bytes paths, but many other modules (including pathlib) support only string paths.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19997>
_______________________________________


More information about the Python-bugs-list mailing list