summaryrefslogtreecommitdiffstats
path: root/Doc/library/imghdr.rst
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-10-01 02:01:54 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-10-01 02:01:54 (GMT)
commitef223a19f76101a914ccff8b4690d9e4717e109e (patch)
treebdad4d3c2616ab612149201f523ed0491198bd22 /Doc/library/imghdr.rst
parent6c63f197dff23f56b15c61dea8bea30d83350c63 (diff)
downloadcpython-ef223a19f76101a914ccff8b4690d9e4717e109e.zip
cpython-ef223a19f76101a914ccff8b4690d9e4717e109e.tar.gz
cpython-ef223a19f76101a914ccff8b4690d9e4717e109e.tar.bz2
Issue #28228: imghdr now supports pathlib
Diffstat (limited to 'Doc/library/imghdr.rst')
-rw-r--r--Doc/library/imghdr.rst3
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`: