mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Revert "Fix KeyError in Tests/test_file_xpm.py"
This reverts commit b29326b175
.
This commit is contained in:
parent
af7e80ea0c
commit
1db3f9d53f
|
@ -616,13 +616,7 @@ class Image:
|
|||
self.palette.mode = "RGB"
|
||||
self.palette.rawmode = None
|
||||
if "transparency" in self.info:
|
||||
|
||||
# XXX Not sure how this ever worked:
|
||||
# if self.info["transparency_palette"]:
|
||||
# Should probably be:
|
||||
if "transparency_palette" in self.info:
|
||||
# amirite?
|
||||
|
||||
if self.info["transparency_palette"]:
|
||||
self.im.putpalettealpha(0, 0, self.info["transparency_palette"])
|
||||
else:
|
||||
self.im.putpalettealpha(self.info["transparency"], 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user