def _get_so_name(filename):
 cmd = ['objdump', '-p', filename]
 m = re.search('\\s+SONAME\\s+([^\\s]+)', compat.exec_command(*cmd))
 return m.group(1)

def _get_so_name ( filename ) : cmd = [ 'objdump' , '-p' , filename ] m = re . search ( '\\s+SONAME\\s+([^\\s]+)' , compat . exec_command ( * cmd ) ) return m . group ( 1 )
return the soname of a library .