def _get_proc_cmdline(proc):
 try:
  return (proc.cmdline() if PSUTIL2 else proc.cmdline)
 except (psutil.NoSuchProcess, psutil.AccessDenied):
  return ''

def _get_proc_cmdline ( proc ) : try : return ( proc . cmdline ( ) if PSUTIL2 else proc . cmdline ) except ( psutil . NoSuchProcess , psutil . AccessDenied ) : return ''
returns the cmdline of a process instance .