[Python-checkins] python/dist/src/Lib rfc822.py,1.66.4.1,1.66.4.2

mwh@users.sourceforge.net mwh@users.sourceforge.net
Mon, 23 Sep 2002 06:40:32 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv1419

Modified Files:
      Tag: release22-maint
	rfc822.py 
Log Message:
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.


Index: rfc822.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/rfc822.py,v
retrieving revision 1.66.4.1
retrieving revision 1.66.4.2
diff -C2 -d -r1.66.4.1 -r1.66.4.2
*** rfc822.py	5 Jun 2002 19:10:18 -0000	1.66.4.1
--- rfc822.py	23 Sep 2002 13:40:29 -0000	1.66.4.2
***************
*** 489,493 ****
      """Parse an address into a (realname, mailaddr) tuple."""
      a = AddrlistClass(address)
!     list = a.getaddrlist()
      if not list:
          return (None, None)
--- 489,493 ----
      """Parse an address into a (realname, mailaddr) tuple."""
      a = AddrlistClass(address)
!     list = a.addresslist
      if not list:
          return (None, None)