#NEWLINE# def codesign_display( self , path ) : #NEWLINE# #INDENT# ' inspect a path with codesign ' #NEWLINE# cmd = [ CODESIGN_BIN , '-d' , '-r-' , '--verbose=20' , path ] #NEWLINE# proc = subprocess . Popen ( cmd , stdout = subprocess . PIPE , stderr = subprocess . STDOUT ) #NEWLINE# ( out , _ ) = proc . communicate ( ) #NEWLINE# assert ( proc . returncode == 0 ) , 'Return code not 0' #NEWLINE# return self . codesign_display_parse ( out )