mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
Merge pull request #1897 from radarhere/info
Removed support for list form of Image info
This commit is contained in:
commit
f7b714bbae
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user