From cec0d6f6df8654d7372eaf042f58a60e7508129e Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 5 May 2016 13:31:46 -0400 Subject: [PATCH] [fix] tuple --- 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 27dc095f..eae31c2f 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 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: