From 73a559d0c9918671ec0cc86afc8cc831a5dd47cc Mon Sep 17 00:00:00 2001 From: "R. David Murray" Date: Tue, 21 Dec 2010 18:07:59 +0000 Subject: Fix the change made for issue 1243654. Surprisingly, it turns out there was no test that exercised this code path. --- Lib/email/generator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/email/generator.py') diff --git a/Lib/email/generator.py b/Lib/email/generator.py index 510f68b440..9d33f1cb87 100644 --- a/Lib/email/generator.py +++ b/Lib/email/generator.py @@ -226,7 +226,8 @@ class Generator: # Create a boundary that doesn't appear in any of the # message texts. alltext = self._encoded_NL.join(msgtexts) - msg.set_boundary(self._make_boundary(alltext)) + boundary = self._make_boundary(alltext) + msg.set_boundary(boundary) # If there's a preamble, write it out, with a trailing CRLF if msg.preamble is not None: self.write(msg.preamble + self._NL) -- cgit v1.2.1