def __init__(self, sock, *args, **kwargs):
    pexpect.spawn.__init__(self, None, *args, **kwargs)
    self.child_fd = sock.fileno()
    self.closed = False
    self.name = '<file descriptor %d>' % self.child_fd
dataset/ETHPy150Open google/capirca/tools/ldpush/pexpect_connection.py/SocketSpawn.__init__/original