summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2017-01-29 18:06:26 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-29 18:06:26 +0100
commit068cd6036651c7564dd3e465fbea458b75d7244a (patch)
tree0d8764175660285a575bd23e40092e52b019856d
parentf5bf11c72b267d717dd4379ec80f9f7c5185f80f (diff)
Removed unneeded parentheses in class definitions
-rw-r--r--django/core/mail/message.py2
-rw-r--r--tests/model_fields/test_imagefield.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/django/core/mail/message.py b/django/core/mail/message.py
index 7fab676474..abb921541b 100644
--- a/django/core/mail/message.py
+++ b/django/core/mail/message.py
@@ -123,7 +123,7 @@ def sanitize_address(addr, encoding):
return str(address)
-class MIMEMixin():
+class MIMEMixin:
def as_string(self, unixfrom=False, linesep='\n'):
"""Return the entire formatted message as a string.
Optional `unixfrom' when True, means include the Unix From_ envelope
diff --git a/tests/model_fields/test_imagefield.py b/tests/model_fields/test_imagefield.py
index 96fa8c839b..3a86d3daf5 100644
--- a/tests/model_fields/test_imagefield.py
+++ b/tests/model_fields/test_imagefield.py
@@ -21,7 +21,7 @@ if Image:
from .models import temp_storage_dir
else:
# Pillow not available, create dummy classes (tests will be skipped anyway)
- class Person():
+ class Person:
pass
PersonWithHeight = PersonWithHeightAndWidth = PersonDimensionsFirst = Person
PersonTwoImages = Person