summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing/reduction.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-04-18 18:51:15 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-04-18 18:51:15 (GMT)
commit23bba4ca398ff2e096413e3bbaf9a6cdaa1d1846 (patch)
treea9818d43b30d0d94d124ec15d45f01b4db36f5b7 /Lib/multiprocessing/reduction.py
parentc51b7fd65b8c7476180c965d48390431b2d558e6 (diff)
downloadcpython-23bba4ca398ff2e096413e3bbaf9a6cdaa1d1846.zip
cpython-23bba4ca398ff2e096413e3bbaf9a6cdaa1d1846.tar.gz
cpython-23bba4ca398ff2e096413e3bbaf9a6cdaa1d1846.tar.bz2
Issue #11750: The Windows API functions scattered in the _subprocess and
_multiprocessing.win32 modules now live in a single module "_winapi". Patch by sbt.
Diffstat (limited to 'Lib/multiprocessing/reduction.py')
-rw-r--r--Lib/multiprocessing/reduction.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/multiprocessing/reduction.py b/Lib/multiprocessing/reduction.py
index dda4a41..c80de59 100644
--- a/Lib/multiprocessing/reduction.py
+++ b/Lib/multiprocessing/reduction.py
@@ -60,11 +60,11 @@ if not(sys.platform == 'win32' or (hasattr(socket, 'CMSG_LEN') and
#
if sys.platform == 'win32':
- from _multiprocessing import win32
+ import _winapi
def send_handle(conn, handle, destination_pid):
- process_handle = win32.OpenProcess(
- win32.PROCESS_ALL_ACCESS, False, destination_pid
+ process_handle = _winapi.OpenProcess(
+ _winapi.PROCESS_ALL_ACCESS, False, destination_pid
)
try:
new_handle = duplicate(handle, process_handle)