diff options
author | chillaranand <anand21nanda@gmail.com> | 2017-01-21 18:43:44 +0530 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-01-25 12:23:46 -0500 |
commit | d6eaf7c0183cd04b78f2a55e1d60bb7e59598310 (patch) | |
tree | ab02fd9949d4bfa23e27dea45e213ce334c883f0 /tests/csrf_tests/tests.py | |
parent | dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff) | |
download | django-d6eaf7c0183cd04b78f2a55e1d60bb7e59598310.tar.gz |
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'tests/csrf_tests/tests.py')
-rw-r--r-- | tests/csrf_tests/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/csrf_tests/tests.py b/tests/csrf_tests/tests.py index f68b0f037b..3531939a73 100644 --- a/tests/csrf_tests/tests.py +++ b/tests/csrf_tests/tests.py @@ -27,7 +27,7 @@ class TestingHttpRequest(HttpRequest): more easily """ def __init__(self): - super(TestingHttpRequest, self).__init__() + super().__init__() # A real session backend isn't needed. self.session = {} @@ -432,7 +432,7 @@ class CsrfViewMiddlewareTestMixin: HttpRequest that can raise an IOError when accessing POST data """ def __init__(self, token, raise_error): - super(CsrfPostRequest, self).__init__() + super().__init__() self.method = 'POST' self.raise_error = False |