From: Barry Warsaw Date: Fri, 12 Apr 2002 20:50:05 +0000 (+0000) Subject: AddrlistClass -> AddressList X-Git-Tag: v2.3c1~5992 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1df15c401efbcac2982ddf30919835cb25f87a7;p=python AddrlistClass -> AddressList --- diff --git a/Lib/email/Utils.py b/Lib/email/Utils.py index 887be55d7d..f8e48ef4f9 100644 --- a/Lib/email/Utils.py +++ b/Lib/email/Utils.py @@ -14,7 +14,7 @@ from cStringIO import StringIO from types import ListType from rfc822 import unquote, quote -from rfc822 import AddrlistClass as _AddrlistClass +from rfc822 import AddressList as _AddressList from rfc822 import mktime_tz # We need wormarounds for bugs in these methods in older Pythons (see below) @@ -96,7 +96,7 @@ def dump_address_pair(pair): def getaddresses(fieldvalues): """Return a list of (REALNAME, EMAIL) for each fieldvalue.""" all = COMMASPACE.join(fieldvalues) - a = _AddrlistClass(all) + a = _AddressList(all) return a.getaddrlist()