From 4f392d227e338719ecc5a310e5aa5af7bb706ac4 Mon Sep 17 00:00:00 2001 From: Dan Lawrence Date: Sat, 11 Nov 2023 10:49:50 +0000 Subject: [PATCH] Fix setDaemon() deprecation error Deprecated in Python 3.10 --- src_py/threads/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_py/threads/__init__.py b/src_py/threads/__init__.py index 9b219c60bf..3e996fac4f 100644 --- a/src_py/threads/__init__.py +++ b/src_py/threads/__init__.py @@ -140,7 +140,7 @@ def _setup_workers(self, num_workers): self.pool.append(Thread(target=self.threadloop)) for a_thread in self.pool: - a_thread.setDaemon(True) + a_thread.daemon = True a_thread.start() def do(self, f, *args, **kwArgs):