Skip to content

Commit d68c591

Browse files
Merge pull request #248 from bluetech/rm-jython-workaround
Remove a workaround for Jython
2 parents 1900890 + 9af6b93 commit d68c591

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/execnet/gateway_bootstrap.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,6 @@ def sendexec(io, *sources):
7878
io.write((repr(source) + "\n").encode("utf-8"))
7979

8080

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-
9581
def bootstrap(io, spec):
9682
if spec.popen:
9783
if spec.via or spec.python:
@@ -105,5 +91,4 @@ def bootstrap(io, spec):
10591
else:
10692
raise ValueError("unknown gateway type, can't bootstrap")
10793
gw = Gateway(io, spec)
108-
fix_pid_for_jython_popen(gw)
10994
return gw

0 commit comments

Comments
 (0)