From b4a70a9a5677fa59b594703ce65703ce521cb2c3 Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 30 May 2016 21:58:12 -0400 Subject: [PATCH] [fix] import --- scripts/geodata/osm/formatter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/geodata/osm/formatter.py b/scripts/geodata/osm/formatter.py index c65d9897..42f27a69 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -6,7 +6,7 @@ import sys import yaml from collections import OrderedDict -from six.itertools import combinations, ifilter +from six import itertools this_dir = os.path.realpath(os.path.dirname(__file__)) sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir))) @@ -615,7 +615,7 @@ class OSMAddressFormatter(object): formatted_intersections = [] - for (w1, w1_base), (w2, w2_base) in combinations(way_names, 2): + for (w1, w1_base), (w2, w2_base) in itertools.combinations(way_names, 2): intersection = IntersectionQuery(road1=w1, intersection_phrase=intersection_phrase, road2=w2) formatted = self.formatter.format_intersection(intersection, address_components, country, language, tag_components=tag_components) formatted_intersections.append(formatted)