Message327383
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. |
|
Date |
User |
Action |
Args |
2018-10-09 08:08:41 | pitrou | set | recipients:
+ pitrou, rhettinger, YoSTEALTH, xtreak |
2018-10-09 08:08:41 | pitrou | set | messageid: <1539072521.65.0.545547206417.issue34926@psf.upfronthosting.co.za> |
2018-10-09 08:08:41 | pitrou | link | issue34926 messages |
2018-10-09 08:08:41 | pitrou | create | |
|