diff --git a/flanker/addresslib/address.py b/flanker/addresslib/address.py index c27abef5..6fb098d7 100644 --- a/flanker/addresslib/address.py +++ b/flanker/addresslib/address.py @@ -47,18 +47,6 @@ from urlparse import urlparse -def _normalize_address_list(address_list): - parts = [] - - for addr in address_list: - if isinstance(addr, Address): - parts.append(unicode(addr)) - if isinstance(addr, basestring): - parts.append(addr) - - return parts - - @metrics_wrapper() def parse(address, addr_spec_only=False, metrics=False): """ @@ -620,3 +608,15 @@ def addr_types(self): Returns a set of address types used in addresses in this list. """ return set([addr.addr_type for addr in self.container]) + + +def _normalize_address_list(address_list): + parts = [] + + for addr in address_list: + if isinstance(addr, Address): + parts.append(addr.to_unicode()) + if isinstance(addr, basestring): + parts.append(addr) + + return parts diff --git a/setup.py b/setup.py index e1488d10..b57cf595 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup(name='flanker', - version='0.4.24', + version='0.4.25', description='Mailgun Parsing Tools', long_description=open('README.rst').read(), classifiers=[],