mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
docs: puremagic.what() as replacement for imghdr.what() (#120871)
This commit is contained in:
parent
b0e1c51882
commit
22b8a35d6e
@ -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`.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user