Skip to content

Commit

Permalink
Set daemon attribute instead of using setDaemon method that was depre…
Browse files Browse the repository at this point in the history
…cated in Python 3.10 (#2033)

* Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10

* Add myself to contributors.
  • Loading branch information
tirkarthi authored Apr 18, 2021
1 parent c81ecd5 commit f2b098e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Joshua Hesketh
Julian Krause
Jürgen Gmach
Jurko Gospodnetić
Karthikeyan Singaravelan
Krisztian Fekete
Laszlo Vasko
Lukasz Balcerzak
Expand Down
2 changes: 1 addition & 1 deletion src/tox/util/spinner.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __enter__(self):
self.render_frame()
self._stop_spinner = threading.Event()
self._spinner_thread = threading.Thread(target=self.render)
self._spinner_thread.setDaemon(True)
self._spinner_thread.daemon = True
self._spinner_thread.start()
return self

Expand Down

0 comments on commit f2b098e

Please sign in to comment.