summaryrefslogtreecommitdiff
path: root/Doc/library/imghdr.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-12-01 13:10:12 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2014-12-01 13:10:12 +0200
commit9a3a7d1676e3e162e2213ddf62c925e8d9b724af (patch)
treec934e04d1f64ced2268ce81c3618e3f416a3ce74 /Doc/library/imghdr.rst
parentcff8685224e9c1d0024aecfb87a2c120ca3a5542 (diff)
parentab27b2a1ce268e24b44ea0e63ccff6b96e4f710e (diff)
downloadcpython-9a3a7d1676e3e162e2213ddf62c925e8d9b724af.tar.gz
Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails.
Original patch by Martin Panter.
Diffstat (limited to 'Doc/library/imghdr.rst')
-rw-r--r--Doc/library/imghdr.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/imghdr.rst b/Doc/library/imghdr.rst
index 9e8952339c..c60df24c5a 100644
--- a/Doc/library/imghdr.rst
+++ b/Doc/library/imghdr.rst
@@ -48,6 +48,16 @@ from :func:`what`:
+------------+-----------------------------------+
| ``'png'`` | Portable Network Graphics |
+------------+-----------------------------------+
+| ``'webp'`` | WebP files |
++------------+-----------------------------------+
+| ``'exr'`` | OpenEXR Files |
++------------+-----------------------------------+
+
+.. versionadded:: 3.5
+ The *exr* format was added.
+
+.. versionchanged:: 3.5
+ The *webp* type was added.
You can extend the list of file types :mod:`imghdr` can recognize by appending
to this variable: