summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-02-08 22:56:17 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-02-08 22:56:17 (GMT)
commit66c3d18af1d20b780e7eabbbfb95049c48e3ce48 (patch)
tree2612a66c627ac3c49e46a9d81d0684039de46038 /Lib/email
parent127242654de9837f4ee544fc3b0a5b22030613e0 (diff)
parente9c31470e1680b7c9b9ee83c378b891e90ac58ab (diff)
downloadcpython-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.py3
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: