diff options
Diffstat (limited to 'Lib/email/generator.py')
| -rw-r--r-- | Lib/email/generator.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/email/generator.py b/Lib/email/generator.py index cf5e092..cc30aff 100644 --- a/Lib/email/generator.py +++ b/Lib/email/generator.py @@ -186,7 +186,8 @@ class Generator: # Create a boundary that doesn't appear in any of the # message texts. alltext = NL.join(msgtexts) - msg.set_boundary(self._make_boundary(alltext)) + boundary = _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: print(msg.preamble, file=self._fp) |
