Skip to content

Commit

Permalink
Replace call to deprecated method Thread.setDaemon()
Browse files Browse the repository at this point in the history
This method was deprecated in Python 3.10, set the Thread.daemon
attribute directly instead.

See: python/cpython#25174
  • Loading branch information
carlsmedstad committed Aug 16, 2024
1 parent 269e5c9 commit 6d88c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pifpaf/drivers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d88c66

Please sign in to comment.