From da83f9f1d04036dfd0b1dae1ce3266cf67435aea Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 7 May 2016 18:33:02 +1000 Subject: [PATCH] Removed support for list form of Image info --- PIL/Image.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/PIL/Image.py b/PIL/Image.py index a1ab88164..acb2c7fac 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -524,13 +524,7 @@ class Image(object): if im.mode == "P" and not new.palette: from PIL import ImagePalette new.palette = ImagePalette.ImagePalette() - try: - new.info = self.info.copy() - except AttributeError: - # fallback (pre-1.5.2) - new.info = {} - for k, v in self.info: - new.info[k] = v + new.info = self.info.copy() return new _makeself = _new # compatibility