Merge pull request #1897 from radarhere/info

Removed support for list form of Image info
This commit is contained in:
wiredfool 2016-05-23 22:30:53 +01:00
commit f7b714bbae

View File

@ -524,13 +524,7 @@ class Image(object):
if im.mode == "P" and not new.palette: if im.mode == "P" and not new.palette:
from PIL import ImagePalette from PIL import ImagePalette
new.palette = ImagePalette.ImagePalette() new.palette = ImagePalette.ImagePalette()
try: new.info = self.info.copy()
new.info = self.info.copy()
except AttributeError:
# fallback (pre-1.5.2)
new.info = {}
for k, v in self.info:
new.info[k] = v
return new return new
_makeself = _new # compatibility _makeself = _new # compatibility