Remove backwards compat code

This commit is contained in:
Kovid Goyal 2015-11-14 12:33:01 +05:30
parent 75e71e34e9
commit 0621499d4b

View File

@ -145,10 +145,7 @@ def identify_data(data):
# ImageMagick segfaults when trying to identify SVG images
raise ValueError('Identifying svg images is not supported')
img = Image()
if hasattr(img, 'identify'):
img.identify(data)
else:
img.load(data)
width, height = img.size
fmt = img.format
return (width, height, fmt)