From: Neil Schemenauer Date: Tue, 11 Nov 2003 19:39:17 +0000 (+0000) Subject: Make Message.__str__ more efficient. X-Git-Tag: v2.4a1~1296 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=767126d7b979020585da0d2b35bda5aae7a40d30;p=thirdparty%2FPython%2Fcpython.git Make Message.__str__ more efficient. --- diff --git a/Lib/rfc822.py b/Lib/rfc822.py index 9a52a90d1dbf..3811a59b208e 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -460,10 +460,7 @@ class Message: return self.dict.items() def __str__(self): - str = '' - for hdr in self.headers: - str = str + hdr - return str + return ''.join(self.headers) # Utility functions