E673 [3.13] docs: puremagic.what() as replacement for imghdr.what() (GH-120871) by miss-islington · Pull Request #120951 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.13] docs: puremagic.what() as replacement for imghdr.what() (GH-120871) #120951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs: puremagic.what() as replacement for imghdr.what() (GH-120871)
(cherry picked from commit 22b8a35)

Co-authored-by: Christian Clauss <cclauss@me.com>
  • Loading branch information
cclauss authored and miss-islington committed Jun 24, 2024
commit 9abe7628a4263f581ba4e70dbe58f2e1523c38d9
3 changes: 3 additions & 0 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,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
Loading
0