[fix] language disambiguation

This commit is contained in:
Al
2016-05-23 11:54:36 -04:00
parent 2a4f8c5634
commit 66e35d517d
2 changed files with 4 additions and 4 deletions

View File

@@ -247,7 +247,7 @@ class AddressComponents(object):
else:
if has_non_latin_script(lang_tuples):
for component, value in six.iteritems(components):
language = disambiguate_language_script(value, lang_tuples)
language, script_langs = disambiguate_language_script(value, lang_tuples)
if language is not UNKNOWN_LANGUAGE:
break
else: