use key in dict instead of key in dict.keys()

This commit is contained in:
András Veres-Szentkirályi 2013-02-21 11:15:14 +01:00 committed by Joar Wandborg
parent 596b3410db
commit dd51c03985

View 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])