mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #28228: imghdr now supports pathlib
This commit is contained in:
parent
6c63f197df
commit
ef223a19f7
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