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)
|
||||
else:
|
||||
self.thread = Thread(target=self.__idle)
|
||||
self.thread.setDaemon(1)
|
||||
self.thread.setDaemon(True)
|
||||
|
||||
def start(self):
|
||||
self.thread.start()
|
||||
|
@ -60,7 +60,7 @@ class IMAPRepository(BaseRepository):
|
||||
self.kathread = ExitNotifyThread(target=self.imapserver.keepalive,
|
||||
name="Keep alive " + self.getname(),
|
||||
args=(keepalivetime, self.kaevent))
|
||||
self.kathread.setDaemon(1)
|
||||
self.kathread.setDaemon(True)
|
||||
self.kathread.start()
|
||||
|
||||
def stopkeepalive(self):
|
||||
|
Loading…
Reference in New Issue
Block a user