[fix] postcodes

This commit is contained in:
Al
2016-09-02 02:31:48 -04:00
parent 28fbb6a3bf
commit d1483ea589

View File

@@ -1027,7 +1027,7 @@ class AddressComponents(object):
not be simply listed as "1" and people expected to understand.
'''
for component in list(address_components):
if component not in self.BOUNDARY_COMPONENTS and component != AddressFormatter.POSTCODE:
if component not in self.BOUNDARY_COMPONENTS or component == AddressFormatter.POSTCODE:
continue
value = address_components[component]
if value.isdigit():