From 87293246e349164f0391148330da578f30ba5fe8 Mon Sep 17 00:00:00 2001 From: spreiter <36988897+spreiter@users.noreply.github.com> Date: Fri, 8 Mar 2024 16:15:03 +0100 Subject: [PATCH] Update daemonising of scan PVs The `setDaemon()` call is deprecated in Python 3.11. Instead the attribute is used. --- pcaspy/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcaspy/driver.py b/pcaspy/driver.py index a00b4e7..f6324cb 100644 --- a/pcaspy/driver.py +++ b/pcaspy/driver.py @@ -513,7 +513,7 @@ def __init__(self, name, info): # scan thread if self.info.scan > 0: self.tid = threading.Thread(target=self.scan) - self.tid.setDaemon(True) + self.tid.daemon = True self.tid.start() def scan(self):