Skip to content

Commit

Permalink
Merge pull request #897 from jun66j5/fix-deprecated-setdaemon
Browse files Browse the repository at this point in the history
Use Thread.daemon property rather than deprecated Thread.setDaemon
  • Loading branch information
GrahamDumpleton authored Aug 8, 2024
2 parents e4e1999 + fc7a5c5 commit e9a089e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/user-guides/debugging-techniques.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ going to need it because of a recurring problem::
pass

_thread = threading.Thread(target=_monitor)
_thread.setDaemon(True)
_thread.daemon = True

def _exiting():
try:
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guides/reloading-source-code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ with how mod_wsgi works is shown below::
pass

_thread = threading.Thread(target=_monitor)
_thread.setDaemon(True)
_thread.daemon = True

def _exiting():
try:
Expand Down
2 changes: 1 addition & 1 deletion src/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ def _monitor():
pass

_thread = threading.Thread(target=_monitor)
_thread.setDaemon(True)
_thread.daemon = True

def _exiting():
try:
Expand Down

0 comments on commit e9a089e

Please sign in to comment.