Antoine Pitrou <pit...@free.fr> added the comment:
I would rather have the mimetypes module improved to accept Path-like objects, so that the following works: >>> p = Path('LICENSE.txt') >>> mimetypes.guess_type(p) ('text/plain', None) It should be quite simple to implement as well. ---------- components: +Library (Lib) keywords: +easy _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34926> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com