def release(self):
if not self.is_locked():<EOL><INDENT>raise NotLocked("<STR_LIT>" % self.path)<EOL><DEDENT>if not self.i_am_locking():<EOL><INDENT>raise NotMyLock("<STR_LIT>" % self.path)<EOL><DEDENT>remove_existing_pidfile(self.path)<EOL>
Release the lock.

            Removes the PID file to release the lock, or raises an
            error if the current process does not hold the lock.