Initialise __logical_frame = 0 so tell() == 0 when unpickled

Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Hugo van Kemenade 2020-04-17 11:20:38 +03:00 committed by GitHub
parent 913e79f010
commit f589f8689f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ class WebPImageFile(ImageFile.ImageFile):
format = "WEBP"
format_description = "WebP image"
__loaded = -1
__logical_frame = -1
__logical_frame = 0
def _open(self):
if not _webp.HAVE_WEBPANIM: