#NEWLINE# def capture( self , command , * args , **kwargs ) : #NEWLINE# #INDENT# kwargs [ 'stdout' ] = PIPE #NEWLINE# kwargs [ 'stderr' ] = STDOUT #NEWLINE# proc = self . _run_process ( command , * args , ** kwargs ) #NEWLINE# ( stdout , stderr ) = proc . communicate ( ) #NEWLINE# if ( self . returncode != 0 ) : #NEWLINE# #INDENT# raise CommandError ( command , proc . returncode , stdout , stderr ) #NEWLINE# #UNINDENT# return stdout