#NEWLINE# def command_output( self , command , split = True ) : #NEWLINE# #INDENT# if ( type ( command ) != list ) : #NEWLINE# #INDENT# command = command . split ( ' ' ) #NEWLINE# #UNINDENT# tmp = subprocess . check_output ( command ) #NEWLINE# out = tmp . decode ( system_encoding ) #NEWLINE# if split : #NEWLINE# #INDENT# return out . split ( '\n' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return out