mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Only set tile in ImageFile __setstate__
This commit is contained in:
parent
0d6440d9f2
commit
4f0b83cc54
|
@ -704,7 +704,6 @@ class Image:
|
|||
|
||||
def __setstate__(self, state):
|
||||
Image.__init__(self)
|
||||
self.tile = []
|
||||
info, mode, size, palette, data = state
|
||||
self.info = info
|
||||
self.mode = mode
|
||||
|
|
|
@ -137,6 +137,10 @@ class ImageFile(Image.Image):
|
|||
if self.format is not None:
|
||||
return Image.MIME.get(self.format.upper())
|
||||
|
||||
def __setstate__(self, state):
|
||||
self.tile = []
|
||||
super().__setstate__(state)
|
||||
|
||||
def verify(self):
|
||||
"""Check file integrity"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user