summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Maranchuk <slav0nic@python.su>2020-04-17 23:45:53 +0300
committerSergey Maranchuk <slav0nic@python.su>2020-04-19 00:53:53 +0300
commiteb08dcf72a5b3720d25260e4333a4a8b88e5ced4 (patch)
tree1e8bc17dc4165b784e2a3cf13cf20b831692517f
parentaadf19a5b81645b18e50699fe2f180aeff3409b3 (diff)
downloadpyramid-eb08dcf72a5b3720d25260e4333a4a8b88e5ced4.tar.gz
pyramid-eb08dcf72a5b3720d25260e4333a4a8b88e5ced4.tar.bz2
pyramid-eb08dcf72a5b3720d25260e4333a4a8b88e5ced4.zip
invoke super() without arguments
-rw-r--r--docs/quick_tour/sqla_demo/tests/test_it.py2
-rw-r--r--src/pyramid/httpexceptions.py2
-rw-r--r--src/pyramid/response.py2
-rw-r--r--src/pyramid/static.py2
-rw-r--r--tests/pkgs/restbugapp/views.py2
-rw-r--r--tests/test_scripts/test_pserve.py2
6 files changed, 6 insertions, 6 deletions
diff --git a/docs/quick_tour/sqla_demo/tests/test_it.py b/docs/quick_tour/sqla_demo/tests/test_it.py
index c79e05022..f0848564b 100644
--- a/docs/quick_tour/sqla_demo/tests/test_it.py
+++ b/docs/quick_tour/sqla_demo/tests/test_it.py
@@ -43,7 +43,7 @@ class BaseTest(unittest.TestCase):
class TestMyViewSuccessCondition(BaseTest):
def setUp(self):
- super(TestMyViewSuccessCondition, self).setUp()
+ super().setUp()
self.init_database()
from sqla_demo.models import MyModel
diff --git a/src/pyramid/httpexceptions.py b/src/pyramid/httpexceptions.py
index f840d8344..c8af559e3 100644
--- a/src/pyramid/httpexceptions.py
+++ b/src/pyramid/httpexceptions.py
@@ -534,7 +534,7 @@ ${html_comment}'''
):
if location is None:
raise ValueError("HTTP redirects need a location to redirect to.")
- super(_HTTPMove, self).__init__(
+ super().__init__(
detail=detail,
headers=headers,
comment=comment,
diff --git a/src/pyramid/response.py b/src/pyramid/response.py
index cb82b5b94..c9beb9e0d 100644
--- a/src/pyramid/response.py
+++ b/src/pyramid/response.py
@@ -47,7 +47,7 @@ class FileResponse(Response):
):
if content_type is None:
content_type, content_encoding = _guess_type(path)
- super(FileResponse, self).__init__(
+ super().__init__(
conditional_response=True,
content_type=content_type,
content_encoding=content_encoding,
diff --git a/src/pyramid/static.py b/src/pyramid/static.py
index e555fc1e2..bf843f385 100644
--- a/src/pyramid/static.py
+++ b/src/pyramid/static.py
@@ -327,7 +327,7 @@ class QueryStringConstantCacheBuster(QueryStringCacheBuster):
"""
def __init__(self, token, param='x'):
- super(QueryStringConstantCacheBuster, self).__init__(param=param)
+ super().__init__(param=param)
self._token = token
def tokenize(self, request, subpath, kw):
diff --git a/tests/pkgs/restbugapp/views.py b/tests/pkgs/restbugapp/views.py
index 429ad0ea2..6930d3668 100644
--- a/tests/pkgs/restbugapp/views.py
+++ b/tests/pkgs/restbugapp/views.py
@@ -11,7 +11,7 @@ class PetRESTView(BaseRESTView):
""" REST Controller to control action of an avatar """
def __init__(self, context, request):
- super(PetRESTView, self).__init__(context, request)
+ super().__init__(context, request)
def GET(self):
return Response('gotten')
diff --git a/tests/test_scripts/test_pserve.py b/tests/test_scripts/test_pserve.py
index 7bf962f9e..f2df0d83e 100644
--- a/tests/test_scripts/test_pserve.py
+++ b/tests/test_scripts/test_pserve.py
@@ -119,7 +119,7 @@ class TestPServeCommand(unittest.TestCase):
class AttrDict(dict):
def __init__(self, *args, **kwargs):
- super(AttrDict, self).__init__(*args, **kwargs)
+ super().__init__(*args, **kwargs)
self.__dict__ = self
def dummy_start_reloader(*args, **kwargs):