From 22b8a35d6e6660cf7457ed6636cb8c12fff7e8e7 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 24 Jun 2024 15:32:13 +0200 Subject: [PATCH] docs: puremagic.what() as replacement for imghdr.what() (#120871) --- Doc/whatsnew/3.13.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 02c2a5ce02b..5c195049980 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`.