From 0037706a5792e6175a409e9ed69533259108abb8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Thu, 21 Feb 2013 11:32:01 +0100 Subject: [PATCH] simplified get_useful --- mediagoblin/tools/exif.py | 7 +------ 1 file changed, 1 insertion(+), 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): -- 2.25.1