summaryrefslogtreecommitdiffstats
path: root/Lib/email/generator.py
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-12-21 18:07:59 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-12-21 18:07:59 (GMT)
commit73a559d0c9918671ec0cc86afc8cc831a5dd47cc (patch)
treeb9951e8e7fb34cfde0835d3e6096b0a6b553335c /Lib/email/generator.py
parent92812028f2748a16ddecb64a97851d0d9a74630e (diff)
downloadcpython-73a559d0c9918671ec0cc86afc8cc831a5dd47cc.zip
cpython-73a559d0c9918671ec0cc86afc8cc831a5dd47cc.tar.gz
cpython-73a559d0c9918671ec0cc86afc8cc831a5dd47cc.tar.bz2
Fix the change made for issue 1243654.
Surprisingly, it turns out there was no test that exercised this code path.
Diffstat (limited to 'Lib/email/generator.py')
-rw-r--r--Lib/email/generator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/email/generator.py b/Lib/email/generator.py
index 510f68b..9d33f1c 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)