[Python-checkins] python/dist/src/Lib rfc822.py,1.69,1.70

bwarsaw@sourceforge.net bwarsaw@sourceforge.net
Wed, 22 May 2002 20:21:03 -0700


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

Modified Files:
	rfc822.py 
Log Message:
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.69
retrieving revision 1.70
diff -C2 -d -r1.69 -r1.70
*** rfc822.py	21 May 2002 19:46:13 -0000	1.69
--- rfc822.py	23 May 2002 03:21:01 -0000	1.70
***************
*** 496,500 ****
      """Parse an address into a (realname, mailaddr) tuple."""
      a = AddressList(address)
!     list = a.getaddrlist()
      if not list:
          return (None, None)
--- 496,500 ----
      """Parse an address into a (realname, mailaddr) tuple."""
      a = AddressList(address)
!     list = a.addresslist
      if not list:
          return (None, None)