summaryrefslogtreecommitdiff
path: root/django/core
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-10 09:35:56 -0400
committerTim Graham <timograham@gmail.com>2013-10-10 09:35:56 -0400
commitcec11a3336c730e6dc2f1966fee749cc830e97c0 (patch)
tree014c34809c0d39ca63c711e6168d297b9de013b3 /django/core
parentff9e8eccf89fc1dce441736c39dcb6e218ca8940 (diff)
Used "is" for comparisons with None.
Diffstat (limited to 'django/core')
-rw-r--r--django/core/mail/message.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/mail/message.py b/django/core/mail/message.py
index 2f24688d42..85699aacec 100644
--- a/django/core/mail/message.py
+++ b/django/core/mail/message.py
@@ -292,7 +292,8 @@ class EmailMessage(object):
into the resulting message attachments.
"""
if isinstance(filename, MIMEBase):
- assert content == mimetype == None
+ assert content is None
+ assert mimetype is None
self.attachments.append(filename)
else:
assert content is not None