Skip to content

Commit fc7a5c5

Browse files
committed
Use Thread.daemon property rather than deprecated Thread.setDaemon
1 parent f54eadd commit fc7a5c5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/user-guides/debugging-techniques.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ going to need it because of a recurring problem::
10751075
pass
10761076

10771077
_thread = threading.Thread(target=_monitor)
1078-
_thread.setDaemon(True)
1078+
_thread.daemon = True
10791079

10801080
def _exiting():
10811081
try:

docs/user-guides/reloading-source-code.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ with how mod_wsgi works is shown below::
355355
pass
356356

357357
_thread = threading.Thread(target=_monitor)
358-
_thread.setDaemon(True)
358+
_thread.daemon = True
359359

360360
def _exiting():
361361
try:

src/server/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ def _monitor():
12671267
pass
12681268

12691269
_thread = threading.Thread(target=_monitor)
1270-
_thread.setDaemon(True)
1270+
_thread.daemon = True
12711271

12721272
def _exiting():
12731273
try:

0 commit comments

Comments
 (0)