projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aff782
)
simplified clean_exif
author
András Veres-Szentkirályi
<vsza@vsza.hu>
Thu, 21 Feb 2013 10:30:23 +0000
(11:30 +0100)
committer
Joar Wandborg
<joar@wandborg.se>
Fri, 22 Feb 2013 21:24:29 +0000
(22:24 +0100)
mediagoblin/tools/exif.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/tools/exif.py
b/mediagoblin/tools/exif.py
index b1da183373956d72c8679e0ea2091bb8c3cf0986..ac11169454035172e91e9abfe39672c7870a866b 100644
(file)
--- a/
mediagoblin/tools/exif.py
+++ b/
mediagoblin/tools/exif.py
@@
-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):