parseaddr(): Fixed in the same way that Message.getaddrlist() was

fixed (re: SF bug #555035).  Include a unittest.
This commit is contained in:
Barry Warsaw 2002-05-23 03:21:01 +00:00
parent 12424bc0ef
commit f655328483
2 changed files with 10 additions and 1 deletions

View file

@ -495,7 +495,7 @@ def quote(str):
def parseaddr(address):
"""Parse an address into a (realname, mailaddr) tuple."""
a = AddressList(address)
list = a.getaddrlist()
list = a.addresslist
if not list:
return (None, None)
else: