We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84761c3 commit 5241e18Copy full SHA for 5241e18
1 file changed
Doc/library/imghdr.rst
@@ -14,11 +14,11 @@ byte stream.
14
The :mod:`imghdr` module defines the following function:
15
16
17
-.. function:: what(filename, h=None)
+.. function:: what(file, h=None)
18
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.
+ 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.
22
23
.. versionchanged:: 3.6
24
Accepts a :term:`path-like object`.
0 commit comments