From: András Veres-Szentkirályi Date: Thu, 21 Feb 2013 10:15:14 +0000 (+0100) Subject: use key in dict instead of key in dict.keys() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dd51c03985db3d278538ac38305d577761838cf7;p=mediagoblin.git use key in dict instead of key in dict.keys() --- diff --git a/mediagoblin/tools/exif.py b/mediagoblin/tools/exif.py index ab3f77f0..5e6e0d3e 100644 --- a/mediagoblin/tools/exif.py +++ b/mediagoblin/tools/exif.py @@ -62,7 +62,7 @@ def exif_fix_image_orientation(im, exif_tags): 6: 270, 8: 90} orientation = exif_tags['Image Orientation'].values[0] - if orientation in rotation_map.keys(): + if orientation in rotation_map: im = im.rotate( rotation_map[orientation])