From 352133dcc0c0ea00fc641a996bc6f806308be3dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sat, 31 Oct 2020 15:35:54 +0100 Subject: [PATCH] call to setDaemon uses Bool argument The argument 1 should be True in these files. --- offlineimap/imapserver.py | 2 +- offlineimap/repository/IMAP.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index e2916a4..067d04d 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -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() diff --git a/offlineimap/repository/IMAP.py b/offlineimap/repository/IMAP.py index 68f1800..679af68 100644 --- a/offlineimap/repository/IMAP.py +++ b/offlineimap/repository/IMAP.py @@ -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):