commit | 767126d7b979020585da0d2b35bda5aae7a40d30 | [log] [tgz] |
---|---|---|
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | Tue Nov 11 19:39:17 2003 +0000 |
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | Tue Nov 11 19:39:17 2003 +0000 |
tree | 6d8ea19080289cf79dc13a4fcc4a74f3da650ca8 | |
parent | d85ed1b7fcefaa32d54997c96992caf9f2e4e27e [diff] [blame] |
Make Message.__str__ more efficient.
diff --git a/Lib/rfc822.py b/Lib/rfc822.py index 9a52a90..3811a59 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py
@@ -460,10 +460,7 @@ return self.dict.items() def __str__(self): - str = '' - for hdr in self.headers: - str = str + hdr - return str + return ''.join(self.headers) # Utility functions