mirror of
https://github.com/python/cpython.git
synced 2025-11-17 17:46:45 +00:00
Issue #28228: Merge from 3.6
This commit is contained in:
commit
c4bd96cce2
4 changed files with 15 additions and 1 deletions
|
|
@ -20,6 +20,9 @@ The :mod:`imghdr` module defines the following function:
|
|||
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.
|
||||
|
||||
.. versionchanged:: 3.6
|
||||
Accepts a :term:`path-like object`.
|
||||
|
||||
The following image types are recognized, as listed below with the return value
|
||||
from :func:`what`:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue