Skip to content

Commit

Permalink
docs: puremagic.what() as replacement for imghdr.what() (python#120871)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Jun 24, 2024
1 parent b0e1c51 commit 22b8a35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 22b8a35

Please sign in to comment.