Skip to content

Commit a19a589

Browse files
[3.13] docs: puremagic.what() as replacement for imghdr.what() (GH-120871) (#120951)
docs: puremagic.what() as replacement for imghdr.what() (GH-120871) (cherry picked from commit 22b8a35) Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 502a99a commit a19a589

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/whatsnew/3.13.rst

+3
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,9 @@ PEP 594: dead batteries (and other module removals)
12951295

12961296
* :mod:`!imghdr`: use the projects :pypi:`filetype`,
12971297
:pypi:`puremagic`, or :pypi:`python-magic` instead.
1298+
The ``puremagic.what()`` function can be used to replace
1299+
the ``imghdr.what()`` function for all file formats that
1300+
were supported by ``imghdr``.
12981301
(Contributed by Victor Stinner in :gh:`104773`.)
12991302

13001303
* :mod:`!mailcap`.

0 commit comments

Comments
 (0)