[issue30268] Make mimetypes.guess_type accept path-like objects

ProgVal report at bugs.python.org
Fri May 5 11:59:37 EDT 2017


ProgVal added the comment:

@r.david.murray I don't think it's a bug either, but a possible enhancement.

@serhiy.storchaka We could simply do this: if isinstance(url, bytes):  url = os.fsdecode(url)

----------

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


More information about the Python-bugs-list mailing list