From f2da5bef9a9031c8bacd63bf598ad13aa650208f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Thu, 21 Feb 2013 11:31:25 +0100 Subject: [PATCH] use dict.iteritems() instead of dict.items() --- mediagoblin/tools/exif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \ -- 2.25.1