summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2024-06-24 13:32:13 (GMT)
committerGitHub <noreply@github.com>2024-06-24 13:32:13 (GMT)
commit22b8a35d6e6660cf7457ed6636cb8c12fff7e8e7 (patch)
treef8eb9aa88a92d8bcee8d38217152a7c6f0ba7f50
parentb0e1c51882e3a129d1e4db8291f7a0d869d6f1d6 (diff)
downloadcpython-22b8a35d6e6660cf7457ed6636cb8c12fff7e8e7.zip
cpython-22b8a35d6e6660cf7457ed6636cb8c12fff7e8e7.tar.gz
cpython-22b8a35d6e6660cf7457ed6636cb8c12fff7e8e7.tar.bz2
docs: puremagic.what() as replacement for imghdr.what() (#120871)
-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 02c2a5c..5c19504 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -1307,6 +1307,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`.