call to setDaemon uses Bool argument
The argument 1 should be True in these files.
This commit is contained in:
parent
78aeed20a9
commit
352133dcc0
@ -778,7 +778,7 @@ class IdleThread:
|
|||||||
self.thread = Thread(target=self.noop)
|
self.thread = Thread(target=self.noop)
|
||||||
else:
|
else:
|
||||||
self.thread = Thread(target=self.__idle)
|
self.thread = Thread(target=self.__idle)
|
||||||
self.thread.setDaemon(1)
|
self.thread.setDaemon(True)
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
self.thread.start()
|
self.thread.start()
|
||||||
|
@ -60,7 +60,7 @@ class IMAPRepository(BaseRepository):
|
|||||||
self.kathread = ExitNotifyThread(target=self.imapserver.keepalive,
|
self.kathread = ExitNotifyThread(target=self.imapserver.keepalive,
|
||||||
name="Keep alive " + self.getname(),
|
name="Keep alive " + self.getname(),
|
||||||
args=(keepalivetime, self.kaevent))
|
args=(keepalivetime, self.kaevent))
|
||||||
self.kathread.setDaemon(1)
|
self.kathread.setDaemon(True)
|
||||||
self.kathread.start()
|
self.kathread.start()
|
||||||
|
|
||||||
def stopkeepalive(self):
|
def stopkeepalive(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user