diff options
author | Barry Warsaw <barry@python.org> | 2002-09-28 20:27:28 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-09-28 20:27:28 (GMT) |
commit | bba6b0243ee8642ab3830c01b6efea5eeb92c31f (patch) | |
tree | 66e61569033e6991785cfe437cb92fbfd645d380 /Lib/email/MIMEText.py | |
parent | 5f253279d621b561519ba273de65185e01e2eba5 (diff) | |
download | cpython-bba6b0243ee8642ab3830c01b6efea5eeb92c31f.zip cpython-bba6b0243ee8642ab3830c01b6efea5eeb92c31f.tar.gz cpython-bba6b0243ee8642ab3830c01b6efea5eeb92c31f.tar.bz2 |
__init__(): Minor code cleanup.
Diffstat (limited to 'Lib/email/MIMEText.py')
-rw-r--r-- | Lib/email/MIMEText.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/MIMEText.py b/Lib/email/MIMEText.py index 048f544..ccc82da 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: |