File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ byte stream.
14
14
The :mod: `imghdr ` module defines the following function:
15
15
16
16
17
- .. function :: what(filename , h=None)
17
+ .. function :: what(file , h=None)
18
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.
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.
22
22
23
23
.. versionchanged :: 3.6
24
24
Accepts a :term: `path-like object `.
You can’t perform that action at this time.
0 commit comments