diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-02-08 22:56:17 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-02-08 22:56:17 (GMT) |
commit | 66c3d18af1d20b780e7eabbbfb95049c48e3ce48 (patch) | |
tree | 2612a66c627ac3c49e46a9d81d0684039de46038 /Lib/email | |
parent | 127242654de9837f4ee544fc3b0a5b22030613e0 (diff) | |
parent | e9c31470e1680b7c9b9ee83c378b891e90ac58ab (diff) | |
download | cpython-66c3d18af1d20b780e7eabbbfb95049c48e3ce48.zip cpython-66c3d18af1d20b780e7eabbbfb95049c48e3ce48.tar.gz cpython-66c3d18af1d20b780e7eabbbfb95049c48e3ce48.tar.bz2 |
Merge: #14983: always add a line end after a MIME boundary marker.
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/generator.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/email/generator.py b/Lib/email/generator.py index 07a97c7..e4a86d4 100644 --- a/Lib/email/generator.py +++ b/Lib/email/generator.py @@ -299,9 +299,8 @@ class Generator: # body-part self._fp.write(body_part) # close-delimiter transport-padding - self.write(self._NL + '--' + boundary + '--') + self.write(self._NL + '--' + boundary + '--' + self._NL) if msg.epilogue is not None: - self.write(self._NL) if self._mangle_from_: epilogue = fcre.sub('>From ', msg.epilogue) else: |