mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Removed redundant part of condition
This commit is contained in:
parent
aa287bc934
commit
cdb0fba2ed
|
@ -812,7 +812,7 @@ class Image:
|
|||
palette_length = self.im.putpalette(mode, arr)
|
||||
self.palette.dirty = 0
|
||||
self.palette.rawmode = None
|
||||
if "transparency" in self.info and mode in ("RGBA", "LA", "PA"):
|
||||
if "transparency" in self.info and mode in ("LA", "PA"):
|
||||
if isinstance(self.info["transparency"], int):
|
||||
self.im.putpalettealpha(self.info["transparency"], 0)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user