From: Michael W. Hudson Date: Mon, 23 Sep 2002 13:40:29 +0000 (+0000) Subject: backport bwarsaw's checkin of X-Git-Tag: v2.2.2b1~165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d24d298752251944aa7449c48be60121b09cff05;p=thirdparty%2FPython%2Fcpython.git backport bwarsaw's checkin of revision 1.70 of rfc822.py parseaddr(): Fixed in the same way that Message.getaddrlist() was fixed (re: SF bug #555035). Include a unittest. --- diff --git a/Lib/rfc822.py b/Lib/rfc822.py index 83460813e36c..aa148b17461e 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -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: