new_address = []
for item in obj.address:
if self.filter_kind(item):
- new_address.extend(item.clone(kind='housenumber', name=n) for n in self.sanitize(item.name))
+ new_address.extend(item.clone(kind='housenumber', name=n)
+ for n in self.sanitize(item.name))
else:
# Don't touch other address items.
new_address.append(item)
yield from self._regularize(hnr)
- def _regularize(self, hnr):
+ @staticmethod
+ def _regularize(hnr):
yield hnr