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