diff --git a/Lib/rfc822.py b/Lib/rfc822.py index 9a52a90d1db..3811a59b208 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -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