From 115807615431ec312c4afd58dd5348236ac634e0 Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 24 Jul 2016 21:34:59 -0400 Subject: [PATCH] [fix] default language suffix is '' --- 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 d8874950..1a7ba086 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -409,7 +409,7 @@ class OSMAddressFormatter(object): for name_tag in ('name', 'alt_name', 'loc_name', 'short_name'): if more_than_one_official_language: name = tags.get(name_tag) - language_suffix = None + language_suffix = '' if name and name.strip(): address_components = {component_name: name.strip()} @@ -422,7 +422,7 @@ class OSMAddressFormatter(object): for language, is_default in local_languages: if is_default and not more_than_one_official_language: - language_suffix = None + language_suffix = '' name = tags.get(name_tag) else: language_suffix = ':{}'.format(language)