mirror of https://github.com/python/cpython
Make Message.__str__ more efficient.
This commit is contained in:
parent
d85ed1b7fc
commit
767126d7b9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue