def _safe_output(line):
 return (not any([(line.startswith('Listing') and line.endswith('...')), ('...done' in line), line.startswith('WARNING:')]))

def _safe_output ( line ) : return ( not any ( [ ( line . startswith ( 'Listing' ) and line . endswith ( '...' ) ) , ( '...done' in line ) , line . startswith ( 'WARNING:' ) ] ) )
looks for rabbitmqctl warning .