#NEWLINE# def subprocess_check_output( * args , **kwargs ) : #NEWLINE# #INDENT# assert ( 'input' not in kwargs ) #NEWLINE# p = subprocess . Popen ( * args , stdout = subprocess . PIPE , ** kwargs ) #NEWLINE# ( output , _ ) = p . communicate ( ) #NEWLINE# ret = p . poll ( ) #NEWLINE# if ret : #NEWLINE# #INDENT# raise subprocess . CalledProcessError ( ret , p . args , output = output ) #NEWLINE# #UNINDENT# return output