Author pitrou
Recipients YoSTEALTH, pitrou, rhettinger, xtreak
Date 2018-10-09.08:08:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539072521.65.0.545547206417.issue34926@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-10-09 08:08:41pitrousetrecipients: + pitrou, rhettinger, YoSTEALTH, xtreak
2018-10-09 08:08:41pitrousetmessageid: <1539072521.65.0.545547206417.issue34926@psf.upfronthosting.co.za>
2018-10-09 08:08:41pitroulinkissue34926 messages
2018-10-09 08:08:41pitroucreate