summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/rfc822.py5
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