summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-05-06 12:50:52 (GMT)
committerGitHub <noreply@github.com>2024-05-06 12:50:52 (GMT)
commitd6fa1d4beef2bf9d83048469667e0ba5f2b41068 (patch)
treeb66abf9ee52374b128c494d1443445f817aec702 /Doc/whatsnew
parentd3c7821335f88d92297622ad1ec17b33b9baf5cd (diff)
downloadcpython-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.rst11
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
------------------------------