diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2003-11-11 19:39:17 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2003-11-11 19:39:17 (GMT) |
commit | 767126d7b979020585da0d2b35bda5aae7a40d30 (patch) | |
tree | 6d8ea19080289cf79dc13a4fcc4a74f3da650ca8 /Lib | |
parent | d85ed1b7fcefaa32d54997c96992caf9f2e4e27e (diff) | |
download | cpython-767126d7b979020585da0d2b35bda5aae7a40d30.zip cpython-767126d7b979020585da0d2b35bda5aae7a40d30.tar.gz cpython-767126d7b979020585da0d2b35bda5aae7a40d30.tar.bz2 |
Make Message.__str__ more efficient.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/rfc822.py | 5 |
1 files changed, 1 insertions, 4 deletions
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 @@ 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 |