def remove_existing_pidfile(pidfile_path):
 try:
  os.remove(pidfile_path)
 except OSError as exc:
  if (exc.errno == errno.ENOENT):
   pass
  else:
   raise

def remove_existing_pidfile ( pidfile_path ) : try : os . remove ( pidfile_path ) except OSError as exc : if ( exc . errno == errno . ENOENT ) : pass else : raise
remove the named pid file if it exists .