mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
AddrlistClass -> AddressList
This commit is contained in:
parent
8a8cdfd0f5
commit
e1df15c401
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ from cStringIO import StringIO
|
||||||
from types import ListType
|
from types import ListType
|
||||||
|
|
||||||
from rfc822 import unquote, quote
|
from rfc822 import unquote, quote
|
||||||
from rfc822 import AddrlistClass as _AddrlistClass
|
from rfc822 import AddressList as _AddressList
|
||||||
from rfc822 import mktime_tz
|
from rfc822 import mktime_tz
|
||||||
|
|
||||||
# We need wormarounds for bugs in these methods in older Pythons (see below)
|
# 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):
|
def getaddresses(fieldvalues):
|
||||||
"""Return a list of (REALNAME, EMAIL) for each fieldvalue."""
|
"""Return a list of (REALNAME, EMAIL) for each fieldvalue."""
|
||||||
all = COMMASPACE.join(fieldvalues)
|
all = COMMASPACE.join(fieldvalues)
|
||||||
a = _AddrlistClass(all)
|
a = _AddressList(all)
|
||||||
return a.getaddrlist()
|
return a.getaddrlist()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue