]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport bwarsaw's checkin of
authorMichael W. Hudson <mwh@python.net>
Mon, 23 Sep 2002 13:40:29 +0000 (13:40 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 23 Sep 2002 13:40:29 +0000 (13:40 +0000)
    revision 1.70 of rfc822.py

parseaddr(): Fixed in the same way that Message.getaddrlist() was
fixed (re: SF bug #555035).  Include a unittest.

Lib/rfc822.py

index 83460813e36cd7d4bec831a86b1e8d7dc99f2a52..aa148b17461e1dc0e2e8028f42dcf67b3cc011b2 100644 (file)
@@ -488,7 +488,7 @@ def quote(str):
 def parseaddr(address):
     """Parse an address into a (realname, mailaddr) tuple."""
     a = AddrlistClass(address)
-    list = a.getaddrlist()
+    list = a.addresslist
     if not list:
         return (None, None)
     else: