mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
getaddresses(): Like the change in rfc822.py, this one needs to access
the AddressList.addresslist attribute directly. Also, add a test case for the email.Utils.getaddresses() interface.
This commit is contained in:
parent
c421ad4a35
commit
4be9eccbc4
2 changed files with 8 additions and 1 deletions
|
@ -113,7 +113,7 @@ def getaddresses(fieldvalues):
|
|||
"""Return a list of (REALNAME, EMAIL) for each fieldvalue."""
|
||||
all = COMMASPACE.join(fieldvalues)
|
||||
a = _AddressList(all)
|
||||
return a.getaddrlist()
|
||||
return a.addresslist
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue