From 5448d9bff2c2a88777a10033b2d25803fdf39d06 Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 26 Jul 2016 02:55:04 -0400 Subject: [PATCH] [fix] using UNKNOWN_LANGUAGE instead of None so it can be treated as a string downstream --- scripts/geodata/osm/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/osm/formatter.py b/scripts/geodata/osm/formatter.py index f9de757a..9e30cb17 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -428,7 +428,7 @@ class OSMAddressFormatter(object): if name and name.strip(): for i in xrange(num_references if name_tag == 'name' else 1): address_components = {component_name: name.strip()} - self.components.add_admin_boundaries(address_components, osm_components, country, language=None, + self.components.add_admin_boundaries(address_components, osm_components, country, UNKNOWN_LANGUAGE, random_key=num_references > 1, language_suffix=language_suffix, drop_duplicate_city_names=False)