[pypy-commit] pypy py3.5: win32 multiprocessing: restore the w_handle function from a deleted module.

amauryfa pypy.commits at gmail.com
Sat Apr 1 13:02:05 EDT 2017


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.5
Changeset: r90902:cedc709e41d2
Date: 2017-04-01 19:01 +0200
http://bitbucket.org/pypy/pypy/changeset/cedc709e41d2/

Log:	win32 multiprocessing: restore the w_handle function from a deleted
	module.

diff --git a/pypy/module/_multiprocessing/interp_win32.py b/pypy/module/_multiprocessing/interp_win32.py
--- a/pypy/module/_multiprocessing/interp_win32.py
+++ b/pypy/module/_multiprocessing/interp_win32.py
@@ -7,7 +7,6 @@
 from pypy.interpreter.error import oefmt, wrap_oserror
 from pypy.interpreter.function import StaticMethod
 from pypy.interpreter.gateway import interp2app, unwrap_spec
-from pypy.module._multiprocessing.interp_connection import w_handle
 
 CONSTANTS = """
     PIPE_ACCESS_INBOUND PIPE_ACCESS_DUPLEX
@@ -35,6 +34,9 @@
 def handle_w(space, w_handle):
     return rffi.cast(rwin32.HANDLE, space.int_w(w_handle))
 
+def w_handle(space, handle):
+    return space.wrap(rffi.cast(rffi.INTPTR_T, handle))
+
 _CreateNamedPipe = rwin32.winexternal(
     'CreateNamedPipeA', [
         rwin32.LPCSTR,


More information about the pypy-commit mailing list