diff options
author | Jakub KulĂk <Kulikjak@gmail.com> | 2021-11-29 12:02:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 12:02:56 (GMT) |
commit | 7431448b817d3bf87f71661cf8f3d537807ab2e2 (patch) | |
tree | d07aa79542d079c7d9eb35231cb9e0ef91c3084e /Lib/concurrent | |
parent | b3f443a35e08a473d52868621e9b268259139cb2 (diff) | |
download | cpython-7431448b817d3bf87f71661cf8f3d537807ab2e2.zip cpython-7431448b817d3bf87f71661cf8f3d537807ab2e2.tar.gz cpython-7431448b817d3bf87f71661cf8f3d537807ab2e2.tar.bz2 |
bpo-43498: Fix dictionary iteration error in _ExecutorManagerThread (GH-24868)
Diffstat (limited to 'Lib/concurrent')
-rw-r--r-- | Lib/concurrent/futures/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py index 19e93a6..695f773 100644 --- a/Lib/concurrent/futures/process.py +++ b/Lib/concurrent/futures/process.py @@ -400,7 +400,7 @@ class _ExecutorManagerThread(threading.Thread): assert not self.thread_wakeup._closed wakeup_reader = self.thread_wakeup._reader readers = [result_reader, wakeup_reader] - worker_sentinels = [p.sentinel for p in self.processes.values()] + worker_sentinels = [p.sentinel for p in list(self.processes.values())] ready = mp.connection.wait(readers + worker_sentinels) cause = None |