Ticket #19107: 19107-django-1.6.5.patch
File 19107-django-1.6.5.patch, 550 bytes (added by , 10 years ago) |
---|
-
django/core/mail/message.py
diff --git a/django/core/mail/message.py b/django/core/mail/message.py index 95762ff..5bcb588 100644
a b class MIMEMixin(): 132 132 """ 133 133 fp = six.StringIO() 134 134 g = generator.Generator(fp, mangle_from_=False) 135 if sys.version_info < (2, 6, 6) and isinstance(self._payload, six.text_type): 136 self._payload = self._payload.encode(self._charset.output_charset) 135 137 g.flatten(self, unixfrom=unixfrom) 136 138 return fp.getvalue() 137 139