Skip to content

Commit 22b8a35

Browse files
authored
docs: puremagic.what() as replacement for imghdr.what() (#120871)
1 parent b0e1c51 commit 22b8a35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/whatsnew/3.13.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,9 @@ PEP 594: dead batteries (and other module removals)
13071307

13081308
* :mod:`!imghdr`: use the projects :pypi:`filetype`,
13091309
:pypi:`puremagic`, or :pypi:`python-magic` instead.
1310+
The ``puremagic.what()`` function can be used to replace
1311+
the ``imghdr.what()`` function for all file formats that
1312+
were supported by ``imghdr``.
13101313
(Contributed by Victor Stinner in :gh:`104773`.)
13111314

13121315
* :mod:`!mailcap`.

0 commit comments

Comments
 (0)