diff options
author | BarneyStratford <barney_stratford@fastmail.fm> | 2021-02-02 20:24:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 20:24:24 (GMT) |
commit | 01c4fddc4b2ac707f226e0bd92679588d2252cc4 (patch) | |
tree | f0861e313364e198913b4c14c519f603c1618342 /Lib/threading.py | |
parent | 58fb156edda1a0e924a38bfed494bd06cb09c9a3 (diff) | |
download | cpython-01c4fddc4b2ac707f226e0bd92679588d2252cc4.zip cpython-01c4fddc4b2ac707f226e0bd92679588d2252cc4.tar.gz cpython-01c4fddc4b2ac707f226e0bd92679588d2252cc4.tar.bz2 |
bpo-41149: Fix a bug in threading that causes fals-y threads callables to fail to start. (GH-21201)
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index 7b3d63d..ff2624a 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -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 |