mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[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 22b8a35d6e
)
Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
502a99a7e6
commit
a19a5895b5
1 changed files with 3 additions and 0 deletions
|
@ -1295,6 +1295,9 @@ PEP 594: dead batteries (and other module removals)
|
||||||
|
|
||||||
* :mod:`!imghdr`: use the projects :pypi:`filetype`,
|
* :mod:`!imghdr`: use the projects :pypi:`filetype`,
|
||||||
:pypi:`puremagic`, or :pypi:`python-magic` instead.
|
: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`.)
|
(Contributed by Victor Stinner in :gh:`104773`.)
|
||||||
|
|
||||||
* :mod:`!mailcap`.
|
* :mod:`!mailcap`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue