diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-10-01 02:01:54 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-10-01 02:01:54 (GMT) |
commit | ef223a19f76101a914ccff8b4690d9e4717e109e (patch) | |
tree | bdad4d3c2616ab612149201f523ed0491198bd22 /Doc | |
parent | 6c63f197dff23f56b15c61dea8bea30d83350c63 (diff) | |
download | cpython-ef223a19f76101a914ccff8b4690d9e4717e109e.zip cpython-ef223a19f76101a914ccff8b4690d9e4717e109e.tar.gz cpython-ef223a19f76101a914ccff8b4690d9e4717e109e.tar.bz2 |
Issue #28228: imghdr now supports pathlib
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/imghdr.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/imghdr.rst b/Doc/library/imghdr.rst index f11f6dc..800e919 100644 --- a/Doc/library/imghdr.rst +++ b/Doc/library/imghdr.rst @@ -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`: |