From 7cbf35836978ceaf711ad361054d62157a107b5d Mon Sep 17 00:00:00 2001 From: Julien Cubizolles Date: Wed, 7 Sep 2022 09:47:07 +0200 Subject: [PATCH] setDaemon deprecated in client.py --- client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client.py b/client.py index 7539603..bc93ca7 100644 --- a/client.py +++ b/client.py @@ -45,8 +45,7 @@ def create_client(name): c.load_connection_file() c.start_channels() io, shell = c.get_iopub_msg, c.get_shell_msg - t = threading.Thread(target=msg_router, args=(io, shell)) - t.setDaemon(True) + t = threading.Thread(target=msg_router, args=(io, shell), daemon=True) t.start() return c