[fix] name

This commit is contained in:
Al
2017-02-11 02:10:59 -05:00
parent 6705ebaffd
commit 081f023d60

View File

@@ -424,7 +424,7 @@ class OpenAddressesFormatter(object):
postcode = components.get(AddressFormatter.POSTCODE, None)
if postcode:
components[AddressFormatter.POSTCODE] = PostalCodes.add_country_phrase(postcode, country)
components[AddressFormatter.POSTCODE] = PostalCodes.add_country_code(postcode, country)
# If there's a postcode, we can still use just the city/state/postcode, otherwise discard
if (not street and street_required and not house_number) or (street and house_number and (street.lower() == house_number.lower())) or (unit and street and street.lower() == unit.lower()):