mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Another merge from mimelib:
_handle_multipart(): If there is an epilogue and the epilogue does
not itself start with a newline, add a newline before writing the
epilogue. Closes SF bug #472481.
This commit is contained in:
parent
cb4414366b
commit
856c32b5f4
1 changed files with 2 additions and 0 deletions
|
|
@ -273,6 +273,8 @@ class Generator:
|
||||||
print >> self._fp, '\n--' + boundary + '--',
|
print >> self._fp, '\n--' + boundary + '--',
|
||||||
# Write out any epilogue
|
# Write out any epilogue
|
||||||
if msg.epilogue is not None:
|
if msg.epilogue is not None:
|
||||||
|
if not msg.epilogue.startswith('\n'):
|
||||||
|
print >> self._fp
|
||||||
self._fp.write(msg.epilogue)
|
self._fp.write(msg.epilogue)
|
||||||
|
|
||||||
def _handle_multipart_digest(self, msg):
|
def _handle_multipart_digest(self, msg):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue