Updated comment about Python issue

This commit is contained in:
Claude Paroz 2014-09-27 22:48:30 +02:00
parent a54adcecff
commit e1fbb68e4e
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ class SafeMIMEText(MIMEMixin, MIMEText):
def __init__(self, text, subtype, charset):
self.encoding = charset
if charset == 'utf-8':
# Unfortunately, Python doesn't support setting a Charset instance
# Unfortunately, Python < 3.5 doesn't support setting a Charset instance
# as MIMEText init parameter (http://bugs.python.org/issue16324).
# We do it manually and trigger re-encoding of the payload.
MIMEText.__init__(self, text, subtype, None)