mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-06 05:05:48 +03:00
Remove duplication by calling __init__() (Suggested by @ulope: 6802c12f89 (commitcomment-6125853)
)
This commit is contained in:
parent
6802c12f89
commit
6c938b784b
|
@ -585,11 +585,7 @@ class Image:
|
|||
return [self.mode, self.size, self.tobytes()]
|
||||
|
||||
def __setstate__(self, state):
|
||||
self.category = NORMAL
|
||||
self.info = {}
|
||||
self.palette = None
|
||||
self.pyaccess = None
|
||||
self.readonly = 0
|
||||
Image.__init__(self)
|
||||
self.tile = []
|
||||
mode, size, data = state
|
||||
self.mode = mode
|
||||
|
|
Loading…
Reference in New Issue
Block a user