Fix the change made for issue 1243654.

Surprisingly, it turns out there was no test that exercised this code path.
This commit is contained in:
R. David Murray 2010-12-21 18:07:59 +00:00
parent 92812028f2
commit 73a559d0c9
2 changed files with 13 additions and 1 deletions

View file

@ -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)