From 802ce668e67f51f904c69fdab2f5565a73c15e8a Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 26 Jan 2016 15:32:19 -0500 Subject: Super duper. * Python 3-ify super() calls. * Remove a bunch of obsolete exception classes. --- src/mailman/testing/helpers.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/mailman/testing/helpers.py') diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py index fa16c1f7f..2e3809f03 100644 --- a/src/mailman/testing/helpers.py +++ b/src/mailman/testing/helpers.py @@ -99,7 +99,7 @@ def make_testable_runner(runner_class, name=None, predicate=None): """Stop processing when the queue is empty.""" def __init__(self, *args, **kws): - super(EmptyingRunner, self).__init__(*args, **kws) + super().__init__(*args, **kws) # We know it's an EmptyingRunner, so really we want to see the # super class in the log files. self.__class__.__name__ = runner_class.__name__ @@ -166,8 +166,7 @@ class TestableMaster(Master): until the pass condition is set. :type start_check: Callable taking no arguments, returning nothing. """ - super(TestableMaster, self).__init__( - restartable=False, config_file=config.filename) + super().__init__(restartable=False, config_file=config.filename) self.start_check = start_check self.event = threading.Event() self.thread = threading.Thread(target=self.loop) @@ -215,7 +214,7 @@ class TestableMaster(Master): self.start_check() # Let the blocking thread know everything's running. self.event.set() - super(TestableMaster, self).loop() + super().loop() @property def runner_pids(self): -- cgit v1.2.3-70-g09d2