Skip to content

Commit

Permalink
gui: update __init__ to use super() (bug 1836097) (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzeid authored Jun 1, 2023
1 parent 08255e7 commit 30b1ce5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions gui/mozregui/bisection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions gui/mozregui/build_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gui/mozregui/check_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion gui/mozregui/crash_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gui/mozregui/single_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30b1ce5

Please sign in to comment.