diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-05-13 23:01:58 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2017-05-14 19:42:32 +0200 |
| commit | d4d812cb567d1f84ef7a569672fdf3c0b83e6fdd (patch) | |
| tree | 7a3163e740f3ae9ce1fe344da862eb1b45d0640e /django | |
| parent | d3209bf09cb91f95292efce3ec2b29d89235f501 (diff) | |
Refs #28196 -- Removed mentions of bytestrings for EmailMessage
With Python 3, there are no more reasons to special-case EmailMessage
arguments which should be plain strings.
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/mail/message.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/django/core/mail/message.py b/django/core/mail/message.py index 73329449b6..20432b05af 100644 --- a/django/core/mail/message.py +++ b/django/core/mail/message.py @@ -204,10 +204,6 @@ class EmailMessage: """ Initialize a single email message (which can be sent to multiple recipients). - - All string arguments used to create the message can be strings - or UTF-8 bytestrings. The SafeMIMEText class will handle any - necessary encoding conversions. """ if to: if isinstance(to, str): @@ -427,10 +423,6 @@ class EmailMultiAlternatives(EmailMessage): """ Initialize a single email message (which can be sent to multiple recipients). - - All string arguments used to create the message can be strings or UTF-8 - bytestrings. The SafeMIMEText class will handle any necessary encoding - conversions. """ super().__init__( subject, body, from_email, to, bcc, connection, attachments, |
