def _output_to_list(cmdoutput):
 return [item for line in cmdoutput.splitlines() if _safe_output(line) for item in line.split()]

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