Skip to content

Commit

Permalink
Version bump and minor refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Jones committed Jan 14, 2015
1 parent 42cd727 commit 2f13176
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions flanker/addresslib/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[],
Expand Down

0 comments on commit 2f13176

Please sign in to comment.