summaryrefslogtreecommitdiff
path: root/django/utils/deprecation.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils/deprecation.py')
-rw-r--r--django/utils/deprecation.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/utils/deprecation.py b/django/utils/deprecation.py
index 2ef95bc343..cb8b001583 100644
--- a/django/utils/deprecation.py
+++ b/django/utils/deprecation.py
@@ -45,7 +45,7 @@ class RenameMethodsBase(type):
renamed_methods = ()
def __new__(cls, name, bases, attrs):
- new_class = super(RenameMethodsBase, cls).__new__(cls, name, bases, attrs)
+ new_class = super().__new__(cls, name, bases, attrs)
for base in inspect.getmro(new_class):
class_name = base.__name__
@@ -79,13 +79,13 @@ class DeprecationInstanceCheck(type):
"`%s` is deprecated, use `%s` instead." % (self.__name__, self.alternative),
self.deprecation_warning, 2
)
- return super(DeprecationInstanceCheck, self).__instancecheck__(instance)
+ return super().__instancecheck__(instance)
class MiddlewareMixin:
def __init__(self, get_response=None):
self.get_response = get_response
- super(MiddlewareMixin, self).__init__()
+ super().__init__()
def __call__(self, request):
response = None