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.
This commit is contained in:
Brian Quinlan 2019-05-07 13:31:11 -04:00 committed by Gregory P. Smith
parent 63deaa5b70
commit f7bda5c572
1 changed files with 2 additions and 2 deletions

View File

@ -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,
# 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