Make Message.__str__ more efficient.

This commit is contained in:
Neil Schemenauer 2003-11-11 19:39:17 +00:00
parent d85ed1b7fc
commit 767126d7b9
1 changed files with 1 additions and 4 deletions

View File

@ -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