summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-05-22 01:52:10 (GMT)
committerBarry Warsaw <barry@python.org>2002-05-22 01:52:10 (GMT)
commit4be9eccbc404f8173bdbc4720421b451a5879cc0 (patch)
tree31662ba86952f9978e220ec6cd5adedaaca6406e /Lib/email
parentc421ad4a35513c5dd2121a7c85ce5f3085d299a1 (diff)
downloadcpython-4be9eccbc404f8173bdbc4720421b451a5879cc0.zip
cpython-4be9eccbc404f8173bdbc4720421b451a5879cc0.tar.gz
cpython-4be9eccbc404f8173bdbc4720421b451a5879cc0.tar.bz2
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.
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/Utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/Utils.py b/Lib/email/Utils.py
index a2b6c87..99a65f9 100644
--- a/Lib/email/Utils.py
+++ b/Lib/email/Utils.py
@@ -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