Revert "Fix KeyError in Tests/test_file_xpm.py"

This reverts commit b29326b175.
This commit is contained in:
Oliver Tonnhofer 2013-03-11 19:02:44 +01:00
parent af7e80ea0c
commit 1db3f9d53f

View File

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