361
361
my_sock, subproc_sock = socket.socketpair()
362
363
except (AttributeError, socket.error):
363
364
# This platform doesn't support socketpair(), so just use ordinary
365
366
stdin = stdout = subprocess.PIPE
368
369
stdin = stdout = subproc_sock
370
370
proc = subprocess.Popen(argv, stdin=stdin, stdout=stdout,
371
371
**os_specific_subprocess_params())
374
376
def connect_sftp(self, username, password, host, port):