summaryrefslogtreecommitdiff
path: root/src/mailman/runners/rest.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-01-26 15:32:19 -0500
committerBarry Warsaw2016-01-26 15:32:19 -0500
commit802ce668e67f51f904c69fdab2f5565a73c15e8a (patch)
tree8ec85559627422b0b13b520cacdc8a776aeee640 /src/mailman/runners/rest.py
parent57a07393e984dbbc356bc05f0c6801ffe1536b47 (diff)
downloadmailman-802ce668e67f51f904c69fdab2f5565a73c15e8a.tar.gz
mailman-802ce668e67f51f904c69fdab2f5565a73c15e8a.tar.zst
mailman-802ce668e67f51f904c69fdab2f5565a73c15e8a.zip
Diffstat (limited to 'src/mailman/runners/rest.py')
-rw-r--r--src/mailman/runners/rest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/runners/rest.py b/src/mailman/runners/rest.py
index 6acc13df0..831f99997 100644
--- a/src/mailman/runners/rest.py
+++ b/src/mailman/runners/rest.py
@@ -41,7 +41,7 @@ class RESTRunner(Runner):
def __init__(self, name, slice=None):
"""See `IRunner`."""
- super(RESTRunner, self).__init__(name, slice)
+ super().__init__(name, slice)
# Both the REST server and the signal handlers must run in the main
# thread; the former because of SQLite requirements (objects created
# in one thread cannot be shared with the other threads), and the
@@ -66,7 +66,7 @@ class RESTRunner(Runner):
self._server.serve_forever()
def signal_handler(self, signum, frame):
- super(RESTRunner, self).signal_handler(signum, frame)
+ super().signal_handler(signum, frame)
if signum in (signal.SIGTERM, signal.SIGINT, signal.SIGUSR1):
# Set the flag that will terminate the TCPserver loop.
self._event.set()