[Python-checkins] python/dist/src/Lib/email MIMEText.py,1.5,1.6
barry@users.sourceforge.net
barry@users.sourceforge.net
Sat, 28 Sep 2002 13:27:30 -0700
Update of /cvsroot/python/python/dist/src/Lib/email
In directory usw-pr-cvs1:/tmp/cvs-serv756
Modified Files:
MIMEText.py
Log Message:
__init__(): Minor code cleanup.
Index: MIMEText.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/MIMEText.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** MIMEText.py 2 Jun 2002 19:04:39 -0000 1.5
--- MIMEText.py 28 Sep 2002 20:27:28 -0000 1.6
***************
*** 36,40 ****
MIMENonMultipart.__init__(self, 'text', _subtype,
**{'charset': _charset})
! if _text and _text[-1] <> '\n':
_text += '\n'
self.set_payload(_text, _charset)
--- 36,40 ----
MIMENonMultipart.__init__(self, 'text', _subtype,
**{'charset': _charset})
! if _text and not _text.endswith('\n'):
_text += '\n'
self.set_payload(_text, _charset)