From 88d3b4ddde0334ecbf8789cf9f1e960dc4ec3018 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 ad7473475e31cb2..43e4c6d4de51378 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -1313,6 +1313,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`.