mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-29 01:13:34 +03:00
Merge pull request #49 from radarhere/fix-webp-pickle
Initialise __loaded = 0, removed initialisation of __physical_frame
This commit is contained in:
commit
9963521b16
|
@ -84,6 +84,7 @@ def test_pickle_la_mode_with_palette(tmp_path):
|
||||||
assert im == loaded_im
|
assert im == loaded_im
|
||||||
|
|
||||||
|
|
||||||
|
@skip_unless_feature("webp")
|
||||||
def test_pickle_tell():
|
def test_pickle_tell():
|
||||||
# Arrange
|
# Arrange
|
||||||
image = Image.open("Tests/images/hopper.webp")
|
image = Image.open("Tests/images/hopper.webp")
|
||||||
|
|
|
@ -38,9 +38,8 @@ class WebPImageFile(ImageFile.ImageFile):
|
||||||
|
|
||||||
format = "WEBP"
|
format = "WEBP"
|
||||||
format_description = "WebP image"
|
format_description = "WebP image"
|
||||||
__loaded = -1
|
__loaded = 0
|
||||||
__logical_frame = 0
|
__logical_frame = 0
|
||||||
__physical_frame = 0
|
|
||||||
|
|
||||||
def _open(self):
|
def _open(self):
|
||||||
if not _webp.HAVE_WEBPANIM:
|
if not _webp.HAVE_WEBPANIM:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user