From 6d88c66f8722016742bd5d5867f05c60501858e9 Mon Sep 17 00:00:00 2001 From: Carl Smedstad Date: Fri, 16 Aug 2024 07:41:36 +0200 Subject: [PATCH] Replace call to deprecated method Thread.setDaemon() This method was deprecated in Python 3.10, set the Thread.daemon attribute directly instead. See: https://github.com/python/cpython/pull/25174 --- pifpaf/drivers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pifpaf/drivers/__init__.py b/pifpaf/drivers/__init__.py index ca71355..f25aae3 100644 --- a/pifpaf/drivers/__init__.py +++ b/pifpaf/drivers/__init__.py @@ -230,7 +230,7 @@ def _exec(self, command, stdout=False, ignore_failure=False, # Continue to read t = threading.Thread(target=self._read_in_bg, args=(app, c.pid, c.stdout,)) - t.setDaemon(True) + t.daemon = True t.start() # Store the thread ref into the Process() to be able # to clean it