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

        Removing a PID file that doesn't already exist puts us in the
        desired state, so we ignore the condition if the file does not
        exist.
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.

        Removing a PID file that doesn't already exist puts us in the
        desired state, so we ignore the condition if the file does not
        exist.

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