Skip to content

Commit 213ca69

Browse files
authored
Replace call to deprecated method Thread.setDaemon() (#184)
This method was deprecated in Python 3.10, set the Thread.daemon attribute directly instead. See: python/cpython#25174
1 parent e841da1 commit 213ca69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pifpaf/drivers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def _exec(self, command, stdout=False, ignore_failure=False,
230230
# Continue to read
231231
t = threading.Thread(target=self._read_in_bg,
232232
args=(app, c.pid, c.stdout,))
233-
t.setDaemon(True)
233+
t.daemon = True
234234
t.start()
235235
# Store the thread ref into the Process() to be able
236236
# to clean it

0 commit comments

Comments
 (0)