summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-24 13:49:13 (GMT)
committerGitHub <noreply@github.com>2024-06-24 13:49:13 (GMT)
commita19a5895b5f8211a85366a1518e9d4f5fb3335c5 (patch)
treefc7ad6aff41fe5d7a0775177f75a099e4135e3e3 /Doc
parent502a99a7e66adc095842addfb366bba6953f34a1 (diff)
downloadcpython-a19a5895b5f8211a85366a1518e9d4f5fb3335c5.zip
cpython-a19a5895b5f8211a85366a1518e9d4f5fb3335c5.tar.gz
cpython-a19a5895b5f8211a85366a1518e9d4f5fb3335c5.tar.bz2
[3.13] docs: puremagic.what() as replacement for imghdr.what() (GH-120871) (#120951)
docs: puremagic.what() as replacement for imghdr.what() (GH-120871) (cherry picked from commit 22b8a35d6e6660cf7457ed6636cb8c12fff7e8e7) Co-authored-by: Christian Clauss <cclauss@me.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.13.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index 35853ff..971f92c 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -1295,6 +1295,9 @@ PEP 594: dead batteries (and other module removals)
* :mod:`!imghdr`: use the projects :pypi:`filetype`,
:pypi:`puremagic`, or :pypi:`python-magic` instead.
+ The ``puremagic.what()`` function can be used to replace
+ the ``imghdr.what()`` function for all file formats that
+ were supported by ``imghdr``.
(Contributed by Victor Stinner in :gh:`104773`.)
* :mod:`!mailcap`.