kete: drop the _run/_stop indirection, not necessary
This commit is contained in:
parent
dba5ddc60c
commit
8affec2002
|
@ -348,8 +348,6 @@ class Worker(GObject.Object):
|
|||
def __init__(self, manager, args=None):
|
||||
GObject.GObject.__init__(self)
|
||||
self.manager = manager
|
||||
self._run = self.run
|
||||
self._stop = self.stop
|
||||
|
||||
def run(self):
|
||||
pass
|
||||
|
@ -358,12 +356,12 @@ class Worker(GObject.Object):
|
|||
pass
|
||||
|
||||
def start(self):
|
||||
self._run()
|
||||
self.run()
|
||||
|
||||
if self.need_mainloop:
|
||||
self.manager.run()
|
||||
|
||||
self._stop()
|
||||
self.stop()
|
||||
|
||||
|
||||
class Searcher(Worker):
|
||||
|
|
Loading…
Reference in New Issue