def already_listening(port, renewer=False):
 if USE_PSUTIL:
  return already_listening_psutil(port, renewer=renewer)
 else:
  logger.debug('Psutil not found, using simple socket check.')
  return already_listening_socket(port, renewer=renewer)

def already_listening ( port , renewer = False ) : if USE_PSUTIL : return already_listening_psutil ( port , renewer = renewer ) else : logger . debug ( 'Psutil not found, using simple socket check.' ) return already_listening_socket ( port , renewer = renewer )
check if a process is already listening on the port .