]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] docs: puremagic.what() as replacement for imghdr.what() (GH-120871) (#120951)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 24 Jun 2024 13:49:13 +0000 (15:49 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Jun 2024 13:49:13 +0000 (13:49 +0000)
docs: puremagic.what() as replacement for imghdr.what() (GH-120871)
(cherry picked from commit 22b8a35d6e6660cf7457ed6636cb8c12fff7e8e7)

Co-authored-by: Christian Clauss <cclauss@me.com>
Doc/whatsnew/3.13.rst

index 35853ff096b7d04a18a0a86b0fe50ebacde4293d..971f92c39298ce3ac7510196398b0d421f6c91a5 100644 (file)
@@ -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`.