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

index 2c0a11437995eec92971a27d2107d1ffcccb60d6..20227aa854d58ab886c961342d558a2764058f79 100644 (file)
@@ -153,7 +153,7 @@ def get_gps_data(tags):
             'latitude': tags['GPS GPSLatitude'],
             'longitude': tags['GPS GPSLongitude']}
 
-        for key, dat in dms_data.items():
+        for key, dat in dms_data.iteritems():
             gps_data[key] = (
                 lambda v:
                     float(v[0].num) / float(v[0].den) \