Commit f7bda5c5 authored by Brian Quinlan's avatar Brian Quinlan Committed by Gregory P. Smith

Don't import wait from connection, it shadows a name (GH-13112)

(lint cleanup) This import causes an argument parameter to shadow the global import name.
parent 63deaa5b
...@@ -51,7 +51,7 @@ from concurrent.futures import _base ...@@ -51,7 +51,7 @@ from concurrent.futures import _base
import queue import queue
from queue import Full from queue import Full
import multiprocessing as mp import multiprocessing as mp
from multiprocessing.connection import wait import multiprocessing.connection
from multiprocessing.queues import Queue from multiprocessing.queues import Queue
import threading import threading
import weakref import weakref
...@@ -352,7 +352,7 @@ def _queue_management_worker(executor_reference, ...@@ -352,7 +352,7 @@ def _queue_management_worker(executor_reference,
# submitted, from the executor being shutdown/gc-ed, or from the # submitted, from the executor being shutdown/gc-ed, or from the
# shutdown of the python interpreter. # shutdown of the python interpreter.
worker_sentinels = [p.sentinel for p in processes.values()] worker_sentinels = [p.sentinel for p in processes.values()]
ready = wait(readers + worker_sentinels) ready = mp.connection.wait(readers + worker_sentinels)
cause = None cause = None
is_broken = True is_broken = True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment