mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Make Message.__str__ more efficient.
This commit is contained in:
parent
d85ed1b7fc
commit
767126d7b9
1 changed files with 1 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue