def custom_check(cmd, ignore_retcode=False):
 p = custom_popen(cmd)
 (out, _) = p.communicate()
 if (p.returncode and (not ignore_retcode)):
  raise RarExecError('Check-run failed')
 return out

def custom_check ( cmd , ignore_retcode = False ) : p = custom_popen ( cmd ) ( out , _ ) = p . communicate ( ) if ( p . returncode and ( not ignore_retcode ) ) : raise RarExecError ( 'Check-run failed' ) return out
run command .