diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-05-06 12:50:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 12:50:52 (GMT) |
commit | d6fa1d4beef2bf9d83048469667e0ba5f2b41068 (patch) | |
tree | b66abf9ee52374b128c494d1443445f817aec702 /Doc/whatsnew | |
parent | d3c7821335f88d92297622ad1ec17b33b9baf5cd (diff) | |
download | cpython-d6fa1d4beef2bf9d83048469667e0ba5f2b41068.zip cpython-d6fa1d4beef2bf9d83048469667e0ba5f2b41068.tar.gz cpython-d6fa1d4beef2bf9d83048469667e0ba5f2b41068.tar.bz2 |
gh-66543: Add mimetypes.guess_file_type() (GH-117258)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.13.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 558565c..0b75665 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -623,6 +623,13 @@ math "fusedMultiplyAdd" operation for special cases. (Contributed by Mark Dickinson and Victor Stinner in :gh:`73468`.) +mimetypes +--------- + +* 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`. + (Contributed by Serhiy Storchaka in :gh:`66543`.) + mmap ---- @@ -1167,6 +1174,10 @@ Deprecated .. Add deprecations above alphabetically, not here at the end. +* Passing file path instead of URL in :func:`~mimetypes.guess_type` is :term:`soft deprecated`. + Use :func:`~mimetypes.guess_file_type` instead. + (Contributed by Serhiy Storchaka in :gh:`66543`.) + Pending Removal in Python 3.14 ------------------------------ |