[Python-checkins] CVS: python/dist/src/Lib/email Generator.py,1.5,1.6

Barry Warsaw bwarsaw@users.sourceforge.net
2001年10月18日 21:06:41 -0700


Update of /cvsroot/python/python/dist/src/Lib/email
In directory usw-pr-cvs1:/tmp/cvs-serv28744
Modified Files:
	Generator.py 
Log Message:
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.
Index: Generator.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/Generator.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Generator.py	2001年10月17日 20:51:42	1.5
--- Generator.py	2001年10月19日 04:06:39	1.6
***************
*** 274,277 ****
--- 274,279 ----
 # Write out any epilogue
 if msg.epilogue is not None:
+ if not msg.epilogue.startswith('\n'):
+ print >> self._fp
 self._fp.write(msg.epilogue)
 

AltStyle によって変換されたページ (->オリジナル) /