def add_pids(pids):
 if (not isinstance(pids, (tuple, list, set))):
  pids = [pids]
 for pid in pids:
  log.info('Added new process to list with pid: %s', pid)
  pid = int(pid)
  if (not (pid in SEEN_LIST)):
   PROCESS_LIST.add(pid)
  SEEN_LIST.add(pid)

def add_pids ( pids ) : if ( not isinstance ( pids , ( tuple , list , set ) ) ) : pids = [ pids ] for pid in pids : log . info ( 'Added new process to list with pid: %s' , pid ) pid = int ( pid ) if ( not ( pid in SEEN_LIST ) ) : PROCESS_LIST . add ( pid ) SEEN_LIST . add ( pid )
add pid .