mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +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 @@ def items(self):
|
|||
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