mirror of https://github.com/python/cpython
AddrlistClass -> AddressList
This commit is contained in:
parent
e1df15c401
commit
56cdf11922
|
@ -351,7 +351,7 @@ class Message:
|
||||||
addr = h[i+1:]
|
addr = h[i+1:]
|
||||||
raw.append(addr)
|
raw.append(addr)
|
||||||
alladdrs = ''.join(raw)
|
alladdrs = ''.join(raw)
|
||||||
a = AddrlistClass(alladdrs)
|
a = AddressList(alladdrs)
|
||||||
return a.getaddrlist()
|
return a.getaddrlist()
|
||||||
|
|
||||||
def getdate(self, name):
|
def getdate(self, name):
|
||||||
|
@ -494,7 +494,7 @@ def quote(str):
|
||||||
|
|
||||||
def parseaddr(address):
|
def parseaddr(address):
|
||||||
"""Parse an address into a (realname, mailaddr) tuple."""
|
"""Parse an address into a (realname, mailaddr) tuple."""
|
||||||
a = AddrlistClass(address)
|
a = AddressList(address)
|
||||||
list = a.getaddrlist()
|
list = a.getaddrlist()
|
||||||
if not list:
|
if not list:
|
||||||
return (None, None)
|
return (None, None)
|
||||||
|
|
Loading…
Reference in New Issue