Remove duplication by calling __init__() (Suggested by @ulope: 6802c12f89 (commitcomment-6125853))

This commit is contained in:
hugovk 2014-04-26 17:18:29 +03:00
parent 6802c12f89
commit 6c938b784b

View File

@ -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