Skip to content

Commit

Permalink
Removed redundant part of condition
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 30, 2021
1 parent aa287bc commit cdb0fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Expand Up @@ -812,7 +812,7 @@ def load(self):
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:
Expand Down

0 comments on commit cdb0fba

Please sign in to comment.