diff --git a/gui/mozregui/bisection.py b/gui/mozregui/bisection.py index 8c7ef212f..dab64b0b5 100644 --- a/gui/mozregui/bisection.py +++ b/gui/mozregui/bisection.py @@ -33,8 +33,12 @@ class GuiBisector(QObject, Bisector): handle_merge = Signal(object, str, str, str) def __init__(self, fetch_config, test_runner, download_manager, download_in_background=True): - QObject.__init__(self) - Bisector.__init__(self, fetch_config, test_runner, download_manager) + super().__init__( + fetch_config=fetch_config, + test_runner=test_runner, + download_manager=download_manager, + dl_in_background=download_in_background, + ) self.bisection = None self.mid = None self.build_infos = None diff --git a/gui/mozregui/build_runner.py b/gui/mozregui/build_runner.py index 2aef88901..e9d86c688 100644 --- a/gui/mozregui/build_runner.py +++ b/gui/mozregui/build_runner.py @@ -54,7 +54,7 @@ class GuiTestRunner(QObject): evaluate_finished = Signal() def __init__(self): - QObject.__init__(self) + super().__init__() self.verdict = None self.launcher = None self.launcher_kwargs = {} @@ -97,7 +97,7 @@ class AbstractBuildRunner(QObject): worker_class = None def __init__(self, mainwindow): - QObject.__init__(self) + super().__init__() self.mainwindow = mainwindow self.thread = None self.worker = None diff --git a/gui/mozregui/check_release.py b/gui/mozregui/check_release.py index cd3aa5073..c0df28754 100644 --- a/gui/mozregui/check_release.py +++ b/gui/mozregui/check_release.py @@ -22,7 +22,7 @@ def run(self): class CheckRelease(QObject): def __init__(self, mainwindow): - QObject.__init__(self, mainwindow) + super().__init__(mainwindow) self.mainwindow = mainwindow self.thread = CheckReleaseThread() self.thread.finished.connect(self.on_release_found) diff --git a/gui/mozregui/crash_reporter.py b/gui/mozregui/crash_reporter.py index 1ed893e99..7d2344934 100644 --- a/gui/mozregui/crash_reporter.py +++ b/gui/mozregui/crash_reporter.py @@ -44,7 +44,7 @@ class CrashReporter(QObject): got_exception = Signal(tuple) def __init__(self, app): - QObject.__init__(self, app) + super().__init__(app) self._sys_except_hook = sys.excepthook self.app = app self.allow_dialog = True diff --git a/gui/mozregui/single_runner.py b/gui/mozregui/single_runner.py index e3e18b3ff..0aac397a9 100644 --- a/gui/mozregui/single_runner.py +++ b/gui/mozregui/single_runner.py @@ -14,7 +14,7 @@ class SingleBuildWorker(QObject): error = Signal(object) def __init__(self, fetch_config, test_runner, download_manager): - QObject.__init__(self) + super().__init__() self.fetch_config = fetch_config self.test_runner = test_runner self.download_manager = download_manager