mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 08:12:33 +03:00
Merge pull request #2714 from radarhere/pyaccess
Removed unnecessary lines
This commit is contained in:
commit
81b7a943ac
|
@ -1494,7 +1494,6 @@ class Image(object):
|
|||
mode = getmodebase(self.mode) + "A"
|
||||
try:
|
||||
self.im.setmode(mode)
|
||||
self.pyaccess = None
|
||||
except (AttributeError, ValueError):
|
||||
# do things the hard way
|
||||
im = self.im.convert(mode)
|
||||
|
@ -1602,7 +1601,6 @@ class Image(object):
|
|||
self.load()
|
||||
if self.readonly:
|
||||
self._copy()
|
||||
self.pyaccess = None
|
||||
self.load()
|
||||
|
||||
if self.pyaccess:
|
||||
|
|
Loading…
Reference in New Issue
Block a user