8000 Don't import wait from connection, it shadows a name (GH-13112) · lisroach/cpython@f7bda5c · GitHub
[go: up one dir, main page]

Skip to content

Commit f7bda5c

Browse files
brianquinlangpshead
authored andcommitted
Don't import wait from connection, it shadows a name (pythonGH- 8000 13112)
(lint cleanup) This import causes an argument parameter to shadow the global import name.
1 parent 63deaa5 commit f7bda5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/concurrent/futures/process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
import queue
5252
from queue import Full
5353
import multiprocessing as mp
54-
from multiprocessing.connection import wait
54+
import multiprocessing.connection
5555
from multiprocessing.queues import Queue
5656
import threading
5757
import weakref
@@ -352,7 +352,7 @@ def shutdown_worker():
352352
# submitted, from the executor being shutdown/gc-ed, or from the
353353
# shutdown of the python interpreter.
354354
worker_sentinels = [p.sentinel for p in processes.values()]
355-
ready = wait(readers + worker_sentinels)
355+
ready = mp.connection.wait(readers + worker_sentinels)
356356

357357
cause = None
358358
is_broken = True

0 commit comments

Comments
 (0)
0