]> granicus.if.org Git - python/commit
bpo-34926: Make mimetypes.guess_type accept os.PathLike objects (GH-9777)
authorMayank Asthana <mayankasthana1993@gmail.com>
Wed, 10 Oct 2018 14:46:44 +0000 (20:16 +0530)
committerAntoine Pitrou <pitrou@free.fr>
Wed, 10 Oct 2018 14:46:44 +0000 (16:46 +0200)
commit7e18deef652a9d413d5dbd19d61073ba7eb5460e
tree3f40e32bd110a4454934d01eb3796f65af9ea7ca
parent3058b7d85697f95573fa042d6b9e4d6e2a9e739c
bpo-34926: Make mimetypes.guess_type accept os.PathLike objects (GH-9777)

:meth:`mimetypes.MimeTypes.guess_type` now accepts :term:`path-like object` in addition to url strings.
Doc/library/mimetypes.rst
Lib/mimetypes.py
Lib/test/test_mimetypes.py
Misc/NEWS.d/next/Library/2018-10-10-00-22-57.bpo-34926.CA0rqd.rst [new file with mode: 0644]