[Python-checkins] bpo-41283: Fix mismatched argument name for imghdr.what (GH-21501)

Ammar Askar webhook-mailer at python.org
Mon Jul 20 20:22:10 EDT 2020


https://github.com/python/cpython/commit/5241e189e77972d3a07acbbb3f0c0cbc2aeeb681
commit: 5241e189e77972d3a07acbbb3f0c0cbc2aeeb681
branch: master
author: Ammar Askar <ammar at ammaraskar.com>
committer: GitHub <noreply at github.com>
date: 2020-07-20T21:22:01-03:00
summary:

bpo-41283: Fix mismatched argument name for imghdr.what (GH-21501)

files:
M Doc/library/imghdr.rst

diff --git a/Doc/library/imghdr.rst b/Doc/library/imghdr.rst
index 800e919599d9c..3d7f6de7a1bec 100644
--- a/Doc/library/imghdr.rst
+++ b/Doc/library/imghdr.rst
@@ -14,11 +14,11 @@ byte stream.
 The :mod:`imghdr` module defines the following function:
 
 
-.. function:: what(filename, h=None)
+.. function:: what(file, h=None)
 
-   Tests the image data contained in the file named by *filename*, and returns a
-   string describing the image type.  If optional *h* is provided, the *filename*
-   is ignored and *h* is assumed to contain the byte stream to test.
+   Tests the image data contained in the file named by *file*, and returns a
+   string describing the image type.  If optional *h* is provided, the *file*
+   argument is ignored and *h* is assumed to contain the byte stream to test.
 
    .. versionchanged:: 3.6
       Accepts a :term:`path-like object`.



More information about the Python-checkins mailing list