Skip to content

Commit 88d3b4d

Browse files
cclaussnoahbkim
authored andcommitted
docs: puremagic.what() as replacement for imghdr.what() (python#120871)
1 parent aac2132 commit 88d3b4d

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
@@ -1313,6 +1313,9 @@ PEP 594: dead batteries (and other module removals)
13131313

13141314
* :mod:`!imghdr`: use the projects :pypi:`filetype`,
13151315
:pypi:`puremagic`, or :pypi:`python-magic` instead.
1316+
The ``puremagic.what()`` function can be used to replace
1317+
the ``imghdr.what()`` function for all file formats that
1318+
were supported by ``imghdr``.
13161319
(Contributed by Victor Stinner in :gh:`104773`.)
13171320

13181321
* :mod:`!mailcap`.

0 commit comments

Comments
 (0)