projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
596b341
)
use key in dict instead of key in dict.keys()
author
András Veres-Szentkirályi
<vsza@vsza.hu>
Thu, 21 Feb 2013 10:15:14 +0000
(11:15 +0100)
committer
Joar Wandborg
<joar@wandborg.se>
Fri, 22 Feb 2013 21:24:29 +0000
(22:24 +0100)
mediagoblin/tools/exif.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/tools/exif.py
b/mediagoblin/tools/exif.py
index ab3f77f0377ce1ffb3745b2b04574e9846aeaefa..5e6e0d3e1ad7d83ba3418c0ba9aa9c88d2166cc9 100644
(file)
--- 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])