We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1900890 commit 9af6b93Copy full SHA for 9af6b93
1 file changed
src/execnet/gateway_bootstrap.py
@@ -78,20 +78,6 @@ def sendexec(io, *sources):
78
io.write((repr(source) + "\n").encode("utf-8"))
79
80
81
-def fix_pid_for_jython_popen(gw):
82
- """
83
- fix for jython 2.5.1
84
85
- spec, io = gw.spec, gw._io
86
- if spec.popen and not spec.via:
87
- # XXX: handle the case of remote being jython
88
- # and not having the popen pid
89
- if io.popen.pid is None:
90
- io.popen.pid = gw.remote_exec(
91
- "import os; channel.send(os.getpid())"
92
- ).receive()
93
-
94
95
def bootstrap(io, spec):
96
if spec.popen:
97
if spec.via or spec.python:
@@ -105,5 +91,4 @@ def bootstrap(io, spec):
105
else:
106
raise ValueError("unknown gateway type, can't bootstrap")
107
gw = Gateway(io, spec)
108
- fix_pid_for_jython_popen(gw)
109
return gw
0 commit comments