simplified clean_exif

This commit is contained in:
András Veres-Szentkirályi 2013-02-21 11:30:23 +01:00 committed by Joar Wandborg
parent 9aff782ba7
commit 5e746bfdd3

View File

@ -92,12 +92,8 @@ def clean_exif(exif):
'JPEGThumbnail',
'Thumbnail JPEGInterchangeFormat']
clean_exif = {}
for key, value in exif.items():
if not key in disabled_tags:
clean_exif[key] = _ifd_tag_to_dict(value)
return clean_exif
return dict((key, _ifd_tag_to_dict(value)) for (key, value)
in exif.iteritems() if key not in disabled_tags)
def _ifd_tag_to_dict(tag):