mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-41149: Fix a bug in threading that causes fals-y threads callables to fail to start. (GH-21201)
This commit is contained in:
parent
58fb156edd
commit
01c4fddc4b
3 changed files with 22 additions and 1 deletions
|
@ -906,7 +906,7 @@ class Thread:
|
|||
|
||||
"""
|
||||
try:
|
||||
if self._target:
|
||||
if self._target is not None:
|
||||
self._target(*self._args, **self._kwargs)
|
||||
finally:
|
||||
# Avoid a refcycle if the thread is running a function with
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue