diff --git a/scripts/easy_train.py b/scripts/easy_train.py index 012f872f..d0ed61b4 100644 --- a/scripts/easy_train.py +++ b/scripts/easy_train.py @@ -313,7 +313,7 @@ def f(): os._exit(errcode) thread = Thread(target=f) - thread.setDaemon(True) + thread.daemon = True thread.start() if sys.platform == "win32": @@ -499,7 +499,7 @@ def __init__(self, period_seconds): self._running = True self._update() - self.setDaemon(True) + self.daemon = True self.start() def _update(self): @@ -2410,7 +2410,7 @@ def f(): time.sleep(1) thread = Thread(target=f) - thread.setDaemon(True) + thread.daemon = True thread.start() def main():