mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
parseaddr(): Fixed in the same way that Message.getaddrlist() was
fixed (re: SF bug #555035). Include a unittest.
This commit is contained in:
parent
12424bc0ef
commit
f655328483
2 changed files with 10 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue