8000 Make the import in `concurrent/futures/process.py` more explicit · AlexWaygood/cpython@b3488e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit b3488e8

Browse files
committed
Make the import in concurrent/futures/process.py more explicit
1 parent a21b7e8 commit b3488e8

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
@@ -49,7 +49,7 @@
4949
from concurrent.futures import _base
5050
import queue
5151
import multiprocessing as mp
52-
import multiprocessing.connection
52+
import multiprocessing.connection as mp_connection
5353
from multiprocessing.queues import Queue
5454
import threading
5555
import weakref
@@ -404,7 +404,7 @@ def wait_result_broken_or_wakeup(self):
404404
wakeup_reader = self.thread_wakeup._reader
405405
readers = [result_reader, wakeup_reader]
406406
worker_sentinels = [p.sentinel for p in list(self.processes.values())]
407-
ready = mp.connection.wait(readers + worker_sentinels)
407+
ready = mp_connection.wait(readers + worker_sentinels)
408408

409409
cause = None
410410
is_broken = True

0 commit comments

Comments
 (0)
0