Kaydet (Commit) bba6b024 authored tarafından Barry Warsaw's avatar Barry Warsaw

__init__(): Minor code cleanup.

üst 5f253279
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment