10000 bpo-41283: Fix mismatched argument name for imghdr.what (GH-21501) · python/cpython@5241e18 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5241e18

Browse files
authored
bpo-41283: Fix mismatched argument name for imghdr.what (GH-21501)
1 parent 84761c3 commit 5241e18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/imghdr.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ byte stream.
1414
The :mod:`imghdr` module defines the following function:
1515

1616

17-
.. function:: what(filename, h=None)
17+
.. function:: what(file, h=None)
1818

19-
Tests the image data contained in the file named by *filename*, and returns a
20-
string describing the image type. If optional *h* is provided, the *filename*
21-
is ignored and *h* is assumed to contain the byte stream to test.
19+
Tests the image data contained in the file named by *file*, and returns a
20+
string describing the image type. If optional *h* is provided, the *file*
21+
argument is ignored and *h* is assumed to contain the byte stream to test.
2222

2323
.. versionchanged:: 3.6
2424
Accepts a :term:`path-like object`.

0 commit comments

Comments
 (0)
0