From 3f3b89f411c2cc8a4c575ec3b2644ad3d8b81e0d Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Tue, 13 Jan 2015 09:05:52 -0500 Subject: [PATCH] Simplify `for` loop --- apply-us-data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apply-us-data.py b/apply-us-data.py index 2ff375e4bf..68fc72875d 100755 --- a/apply-us-data.py +++ b/apply-us-data.py @@ -30,11 +30,11 @@ counties[(row['State FIPS'], row['Name'][:-13])] = value # more key variations - for ((s, c), value) in list(counties.items()): + for (s, c), value in counties.iteritems(): if c.startswith('St. '): counties[(s, 'Saint '+c[4:])] = value - for ((s, c), value) in list(counties.items()): + for (s, c), value in counties.iteritems(): counties[(s, c.lower())] = value counties[(s, c.replace('-', ' '))] = value counties[(s, c.replace('-', ' ').lower())] = value