diff options
author | Davin Potts <python@discontinuity.net> | 2016-09-09 23:03:10 (GMT) |
---|---|---|
committer | Davin Potts <python@discontinuity.net> | 2016-09-09 23:03:10 (GMT) |
commit | 5458647bb867770fc3d830a618cef6994fdfac4b (patch) | |
tree | f16fef69f4ddf36872152328fe302d22e2258763 /Lib/multiprocessing/popen_spawn_posix.py | |
parent | f1024f74250d534d16a9970e5093b3b4e693b398 (diff) | |
download | cpython-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_posix.py')
-rw-r--r-- | Lib/multiprocessing/popen_spawn_posix.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/multiprocessing/popen_spawn_posix.py b/Lib/multiprocessing/popen_spawn_posix.py index 6b0a8d6..98f8f0a 100644 --- a/Lib/multiprocessing/popen_spawn_posix.py +++ b/Lib/multiprocessing/popen_spawn_posix.py @@ -1,9 +1,8 @@ import io import os -from . import context +from .context import reduction, set_spawning_popen from . import popen_fork -from . import reduction from . import spawn from . import util @@ -42,12 +41,12 @@ class Popen(popen_fork.Popen): self._fds.append(tracker_fd) prep_data = spawn.get_preparation_data(process_obj._name) fp = io.BytesIO() - context.set_spawning_popen(self) + set_spawning_popen(self) try: reduction.dump(prep_data, fp) reduction.dump(process_obj, fp) finally: - context.set_spawning_popen(None) + set_spawning_popen(None) parent_r = child_w = child_r = parent_w = None try: |