def _output_lines_to_list(cmdoutput):
 return [line.strip() for line in cmdoutput.splitlines() if _safe_output(line)]

def _output_lines_to_list ( cmdoutput ) : return [ line . strip ( ) for line in cmdoutput . splitlines ( ) if _safe_output ( line ) ]
convert rabbitmqctl output to a list of strings .