mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
__init__(): Minor code cleanup.
This commit is contained in:
parent
5f253279d6
commit
bba6b0243e
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue