Skip to content

Commit 7adeb26

Browse files
authored
Set daemon attribute directly
setDaemon() has been deprecated in favor of setting daemon attribute directly in Python 3.10. See: python/cpython#25174
1 parent 89f88e6 commit 7adeb26

File tree

1 file changed

+1
-1
lines changed
  • repos/kaleido/py/kaleido/scopes

1 file changed

+1
-1
lines changed

repos/kaleido/py/kaleido/scopes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def _ensure_kaleido(self):
185185
# Set up thread to asynchronously collect standard error stream
186186
if self._std_error_thread is None or not self._std_error_thread.is_alive():
187187
self._std_error_thread = Thread(target=self._collect_standard_error)
188-
self._std_error_thread.setDaemon(True)
188+
self._std_error_thread.daemon = True
189189
self._std_error_thread.start()
190190

191191
# Read startup message and check for errors

0 commit comments

Comments
 (0)