Removed redundant part of condition

This commit is contained in:
Andrew Murray 2021-12-30 11:45:40 +11:00
parent aa287bc934
commit cdb0fba2ed

View File

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