Skip to content

Commit 805dfa5

Browse files
Fix a bug in threading that causes threads to fail to start. #41149
1 parent 04cdeb7 commit 805dfa5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/threading.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,7 @@ def run(self):
884884
885885
"""
886886
try:
887-
if self._target:
888-
self._target(*self._args, **self._kwargs)
887+
self._target(*self._args, **self._kwargs)
889888
finally:
890889
# Avoid a refcycle if the thread is running a function with
891890
# an argument that has a member that points to the thread.

0 commit comments

Comments
 (0)