From: Barry Warsaw Date: Sat, 28 Sep 2002 20:27:28 +0000 (+0000) Subject: __init__(): Minor code cleanup. X-Git-Tag: v2.3c1~3958 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bba6b0243ee8642ab3830c01b6efea5eeb92c31f;p=python __init__(): Minor code cleanup. --- diff --git a/Lib/email/MIMEText.py b/Lib/email/MIMEText.py index 048f544f6c..ccc82da9e4 100644 --- a/Lib/email/MIMEText.py +++ b/Lib/email/MIMEText.py @@ -35,7 +35,7 @@ class MIMEText(MIMENonMultipart): """ MIMENonMultipart.__init__(self, 'text', _subtype, **{'charset': _charset}) - if _text and _text[-1] <> '\n': + if _text and not _text.endswith('\n'): _text += '\n' self.set_payload(_text, _charset) if _encoder is not None: