(pidfile_path)
Remove the named PID file if it exists.

        Remove the named PID file. Ignore the condition if the file
        does not exist, since that only means we are already in the
        desired state.
Remove the named PID file if it exists.
Remove the named PID file if it exists .
def remove_existing_pidfile(pidfile_path):
    """ Remove the named PID file if it exists.

        Remove the named PID file. Ignore the condition if the file
        does not exist, since that only means we are already in the
        desired state.

        """
    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