From e198bbf23e72ba3b6930c25e41c0cb5ef361a85b Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 5 May 2016 13:31:03 -0400 Subject: [PATCH] [fix] whitespace --- scripts/geodata/addresses/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/addresses/components.py b/scripts/geodata/addresses/components.py index beac924f..27dc095f 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -235,7 +235,7 @@ class AddressExpander(object): for is_phrase, phrase_tokens, value in phrases: if is_phrase: - whitespace = not any((c in token_types.IDEOGRAPHIC_CHAR, token_types.IDEOGRAPHIC_NUMBER) for t, c in current_phrase_tokens) + whitespace = not any((c in token_types.IDEOGRAPHIC_CHAR, token_types.IDEOGRAPHIC_NUMBER) for t, c in phrase_tokens) join_phrase = six.u(' ') if whitespace else six.u('') if num_phrases > 0: