Skip to content

Commit

Permalink
Update daemonising of scan PVs
Browse files Browse the repository at this point in the history
The `setDaemon()` call is deprecated in Python 3.11. Instead the attribute is used.
  • Loading branch information
spreiter authored Mar 8, 2024
1 parent 8e72a0c commit 8729324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcaspy/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8729324

Please sign in to comment.