Issue #28228: imghdr now supports pathlib

This commit is contained in:
Berker Peksag 2016-10-01 05:01:54 +03:00
parent 6c63f197df
commit ef223a19f7
4 changed files with 15 additions and 1 deletions

View file

@ -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`: