#NEWLINE# def command_by_line( cmd , successful_status = ( 0 , ) , stacklevel = 1 ) : #NEWLINE# #INDENT# ( ok , output ) = getoutput ( ok , successful_status = successful_status , stacklevel = ( stacklevel + 1 ) ) #NEWLINE# if ( not ok ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# output = output . decode ( 'ascii' ) #NEWLINE# for line in output . splitlines ( ) : #NEWLINE# #INDENT# ( yield line . strip ( ) )