diff options
author | András Veres-Szentkirályi <vsza@vsza.hu> | 2013-02-21 11:32:01 +0100 |
---|---|---|
committer | Joar Wandborg <joar@wandborg.se> | 2013-02-22 22:24:29 +0100 |
commit | 0037706a5792e6175a409e9ed69533259108abb8 (patch) | |
tree | fc66db03d408006a6c6c93bd3212a9a3327a7d4d | |
parent | f2da5bef9a9031c8bacd63bf598ad13aa650208f (diff) | |
download | mediagoblin-0037706a5792e6175a409e9ed69533259108abb8.tar.lz mediagoblin-0037706a5792e6175a409e9ed69533259108abb8.tar.xz mediagoblin-0037706a5792e6175a409e9ed69533259108abb8.zip |
simplified get_useful
-rw-r--r-- | mediagoblin/tools/exif.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/mediagoblin/tools/exif.py b/mediagoblin/tools/exif.py index 20227aa8..15dffa79 100644 --- a/mediagoblin/tools/exif.py +++ b/mediagoblin/tools/exif.py @@ -131,12 +131,7 @@ def _ratio_to_list(ratio): def get_useful(tags): - useful = {} - for key, tag in tags.items(): - if key in USEFUL_TAGS: - useful[key] = tag - - return useful + return dict((key, tag) for (key, tag) in tags.iteritems() if key in USEFUL_TAGS) def get_gps_data(tags): |