diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-12-01 13:10:12 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-12-01 13:10:12 +0200 |
commit | 9a3a7d1676e3e162e2213ddf62c925e8d9b724af (patch) | |
tree | c934e04d1f64ced2268ce81c3618e3f416a3ce74 /Doc/library/imghdr.rst | |
parent | cff8685224e9c1d0024aecfb87a2c120ca3a5542 (diff) | |
parent | ab27b2a1ce268e24b44ea0e63ccff6b96e4f710e (diff) | |
download | cpython-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.rst | 10 |
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: |