From: András Veres-Szentkirályi Date: Thu, 21 Feb 2013 10:31:25 +0000 (+0100) Subject: use dict.iteritems() instead of dict.items() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f2da5bef9a9031c8bacd63bf598ad13aa650208f;p=mediagoblin.git use dict.iteritems() instead of dict.items() --- diff --git a/mediagoblin/tools/exif.py b/mediagoblin/tools/exif.py index 2c0a1143..20227aa8 100644 --- a/mediagoblin/tools/exif.py +++ b/mediagoblin/tools/exif.py @@ -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) \