]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
docs: puremagic.what() as replacement for imghdr.what() (#120871)
authorChristian Clauss <cclauss@me.com>
Mon, 24 Jun 2024 13:32:13 +0000 (15:32 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Jun 2024 13:32:13 +0000 (15:32 +0200)
Doc/whatsnew/3.13.rst

index 02c2a5ce02b730b40934aa18839f5bf0644e3f7d..5c195049980a4bf2b75e311a5f86f24cef8f576b 100644 (file)
@@ -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`.