[Python-checkins] python/dist/src/Lib rfc822.py,1.68,1.69
bwarsaw@sourceforge.net
bwarsaw@sourceforge.net
2002年5月21日 12:46:15 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv20770/Lib
Modified Files:
rfc822.py
Log Message:
Message.getaddrlist(): Use the AddressList.addresslist attribute
instead of calling the getaddrlist() method, since the latter doesn't
work with multiple calls (it will return the empty list for the second
and subsequent calls).
Closes SF bug #555035. Include a unittest.
Index: rfc822.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/rfc822.py,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** rfc822.py 12 Apr 2002 20:55:31 -0000 1.68
--- rfc822.py 21 May 2002 19:46:13 -0000 1.69
***************
*** 353,357 ****
alladdrs = ''.join(raw)
a = AddressList(alladdrs)
! return a.getaddrlist()
def getdate(self, name):
--- 353,357 ----
alladdrs = ''.join(raw)
a = AddressList(alladdrs)
! return a.addresslist
def getdate(self, name):