Skip to content

Commit

Permalink
Merge pull request #6793 from radarhere/tile
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 21, 2022
2 parents 2f3561f + 4f0b83c commit acdb882
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/PIL/Image.py
Expand Up @@ -711,7 +711,6 @@ def __getstate__(self):

def __setstate__(self, state):
Image.__init__(self)
self.tile = []
info, mode, size, palette, data = state
self.info = info
self.mode = mode
Expand Down
4 changes: 4 additions & 0 deletions src/PIL/ImageFile.py
Expand Up @@ -137,6 +137,10 @@ def get_format_mimetype(self):
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"""

Expand Down

0 comments on commit acdb882

Please sign in to comment.