From eb08dcf72a5b3720d25260e4333a4a8b88e5ced4 Mon Sep 17 00:00:00 2001 From: Sergey Maranchuk Date: Fri, 17 Apr 2020 23:45:53 +0300 Subject: invoke super() without arguments --- src/pyramid/httpexceptions.py | 2 +- src/pyramid/response.py | 2 +- src/pyramid/static.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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): -- cgit v1.2.3