def more_data(pipe_out):
    """Check if there is more data left on the pipe

    :param pipe_out: The os pipe_out
    :rtype: bool
    """
    r, _, _ = select.select([pipe_out], [], [], 0)
    return bool(r)
def more_data ( pipe_out ) : r , _ , _ = select . select ( [ pipe_out ] , [ ] , [ ] , 0 ) return bool ( r )
Check if there is more data left on the pipe

    :param pipe_out: The os pipe_out
    :rtype: bool