gh-66543: Add mimetypes.guess_file_type() (GH-117258)

This commit is contained in:
Serhiy Storchaka 2024-05-06 15:50:52 +03:00 • committed by GitHub
parent d3c7821335
commit d6fa1d4bee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 129 additions and 35 deletions

View file

@ -0,0 +1,3 @@
Add the :func:`mimetypes.guess_file_type` function which works with file
path. Passing file path instead of URL in :func:`~mimetypes.guess_type` is
:term:`soft deprecated`.