Issue #20197: Added support for the WebP image type in the imghdr module.

Patch by Fabrice Aneche and Claudiu Popa.
This commit is contained in:
Serhiy Storchaka 2014-05-25 11:45:37 +03:00
parent e84d26c61b
commit 2f8dca735e
6 changed files with 17 additions and 1 deletions

View file

@ -48,6 +48,11 @@ from :func:`what`:
+------------+-----------------------------------+
| ``'png'`` | Portable Network Graphics |
+------------+-----------------------------------+
| ``'webp'`` | WebP files |
+------------+-----------------------------------+
.. 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: