summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing/popen_spawn_win32.py
diff options
context:
space:
mode:
authorDavin Potts <python@discontinuity.net>2016-09-09 23:03:10 (GMT)
committerDavin Potts <python@discontinuity.net>2016-09-09 23:03:10 (GMT)
commit5458647bb867770fc3d830a618cef6994fdfac4b (patch)
treef16fef69f4ddf36872152328fe302d22e2258763 /Lib/multiprocessing/popen_spawn_win32.py
parentf1024f74250d534d16a9970e5093b3b4e693b398 (diff)
downloadcpython-5458647bb867770fc3d830a618cef6994fdfac4b.zip
cpython-5458647bb867770fc3d830a618cef6994fdfac4b.tar.gz
cpython-5458647bb867770fc3d830a618cef6994fdfac4b.tar.bz2
Issue #28053: Applying refactorings, docs and other cleanup to follow.
Diffstat (limited to 'Lib/multiprocessing/popen_spawn_win32.py')
-rw-r--r--Lib/multiprocessing/popen_spawn_win32.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/multiprocessing/popen_spawn_win32.py b/Lib/multiprocessing/popen_spawn_win32.py
index 3b53068..6fd588f 100644
--- a/Lib/multiprocessing/popen_spawn_win32.py
+++ b/Lib/multiprocessing/popen_spawn_win32.py
@@ -4,9 +4,8 @@ import signal
import sys
import _winapi
-from . import context
+from .context import reduction, get_spawning_popen, set_spawning_popen
from . import spawn
-from . import reduction
from . import util
__all__ = ['Popen']
@@ -60,15 +59,15 @@ class Popen(object):
util.Finalize(self, _winapi.CloseHandle, (self.sentinel,))
# send information to child
- context.set_spawning_popen(self)
+ set_spawning_popen(self)
try:
reduction.dump(prep_data, to_child)
reduction.dump(process_obj, to_child)
finally:
- context.set_spawning_popen(None)
+ set_spawning_popen(None)
def duplicate_for_child(self, handle):
- assert self is context.get_spawning_popen()
+ assert self is get_spawning_popen()
return reduction.duplicate(handle, self.sentinel)
def wait(self, timeout=None):