use key in dict instead of key in dict.keys()
authorAndrás Veres-Szentkirályi <vsza@vsza.hu>
Thu, 21 Feb 2013 10:15:14 +0000 (11:15 +0100)
committerJoar Wandborg <joar@wandborg.se>
Fri, 22 Feb 2013 21:24:29 +0000 (22:24 +0100)
mediagoblin/tools/exif.py

index ab3f77f0377ce1ffb3745b2b04574e9846aeaefa..5e6e0d3e1ad7d83ba3418c0ba9aa9c88d2166cc9 100644 (file)
@@ -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])