diff options
-rw-r--r-- | src/waitress/proxy_headers.py | 2 | ||||
-rw-r--r-- | src/waitress/server.py | 2 | ||||
-rw-r--r-- | tests/test_channel.py | 2 | ||||
-rw-r--r-- | tests/test_functional.py | 6 | ||||
-rw-r--r-- | tests/test_task.py | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/src/waitress/proxy_headers.py b/src/waitress/proxy_headers.py index 1df8b8e..ea7ac56 100644 --- a/src/waitress/proxy_headers.py +++ b/src/waitress/proxy_headers.py @@ -22,7 +22,7 @@ class MalformedProxyHeader(Exception): self.header = header self.reason = reason self.value = value - super(MalformedProxyHeader, self).__init__(header, reason, value) + super().__init__(header, reason, value) def proxy_headers_middleware( diff --git a/src/waitress/server.py b/src/waitress/server.py index a5a246c..8c477c6 100644 --- a/src/waitress/server.py +++ b/src/waitress/server.py @@ -405,7 +405,7 @@ if hasattr(socket, "AF_UNIX"): if sockinfo is None: sockinfo = (socket.AF_UNIX, socket.SOCK_STREAM, None, None) - super(UnixWSGIServer, self).__init__( + super().__init__( application, map=map, _start=_start, diff --git a/tests/test_channel.py b/tests/test_channel.py index a8102fc..4d8aa23 100644 --- a/tests/test_channel.py +++ b/tests/test_channel.py @@ -270,7 +270,7 @@ class TestHTTPChannel(unittest.TestCase): class Lock(DummyLock): def wait(self): inst.total_outbufs_len = 0 - super(Lock, self).wait() + super().wait() inst.outbuf_lock = Lock() wrote = inst.write_soon(b"xyz") diff --git a/tests/test_functional.py b/tests/test_functional.py index f92faaf..add50f3 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -54,7 +54,7 @@ class FixtureTcpWSGIServer(server.TcpWSGIServer): def __init__(self, application, queue, **kw): # pragma: no cover # Coverage doesn't see this as it's ran in a separate process. kw["port"] = 0 # Bind to any available port. - super(FixtureTcpWSGIServer, self).__init__(application, **kw) + super().__init__(application, **kw) host, port = self.socket.getsockname() if os.name == "nt": host = "127.0.0.1" @@ -1512,7 +1512,7 @@ if hasattr(socket, "AF_UNIX"): # Coverage doesn't see this as it's ran in a separate process. # To permit parallel testing, use a PID-dependent socket. kw["unix_socket"] = "/tmp/waitress.test-%d.sock" % os.getpid() - super(FixtureUnixWSGIServer, self).__init__(application, **kw) + super().__init__(application, **kw) queue.put(self.socket.getsockname()) class UnixTests(SubprocessTests): @@ -1523,7 +1523,7 @@ if hasattr(socket, "AF_UNIX"): return UnixHTTPConnection(self.bound_to) def stop_subprocess(self): - super(UnixTests, self).stop_subprocess() + super().stop_subprocess() cleanup_unix_socket(self.bound_to) def send_check_error(self, to_send): diff --git a/tests/test_task.py b/tests/test_task.py index 9c170bb..6848db2 100644 --- a/tests/test_task.py +++ b/tests/test_task.py @@ -15,7 +15,7 @@ class TestThreadedTaskDispatcher(unittest.TestCase): class BadDummyTask(DummyTask): def service(self): - super(BadDummyTask, self).service() + super().service() inst.stop_count += 1 raise Exception |