[Python-checkins] python/dist/src/Lib rfc822.py,1.75,1.76
nascheme at users.sourceforge.net
nascheme at users.sourceforge.net
Tue Nov 11 14:39:19 EST 2003
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv9373/Lib
Modified Files:
rfc822.py
Log Message:
Make Message.__str__ more efficient.
Index: rfc822.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/rfc822.py,v
retrieving revision 1.75
retrieving revision 1.76
diff -C2 -d -r1.75 -r1.76
*** rfc822.py 6 Nov 2003 14:06:47 -0000 1.75
--- rfc822.py 11 Nov 2003 19:39:17 -0000 1.76
***************
*** 461,468 ****
def __str__(self):
! str = ''
! for hdr in self.headers:
! str = str + hdr
! return str
--- 461,465 ----
def __str__(self):
! return ''.join(self.headers)
More information about the Python-checkins
mailing list