commit | 01c4fddc4b2ac707f226e0bd92679588d2252cc4 | [log] [tgz] |
---|---|---|
author | BarneyStratford <barney_stratford@fastmail.fm> | Tue Feb 02 20:24:24 2021 +0000 |
committer | GitHub <noreply@github.com> | Tue Feb 02 20:24:24 2021 +0000 |
tree | f0861e313364e198913b4c14c519f603c1618342 | |
parent | 58fb156edda1a0e924a38bfed494bd06cb09c9a3 [diff] [blame] |
bpo-41149: Fix a bug in threading that causes fals-y threads callables to fail to start. (GH-21201)
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 @@ def run(self): """ 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