def release(self):
        if not self.is_locked():
            raise NotLocked("%s is not locked" % self.path)
        elif not os.path.exists(self.unique_name):
            raise NotMyLock("%s is locked, but not by me" % self.path)
        os.unlink(self.unique_name)
        os.rmdir(self.lock_file)
dataset/ETHPy150Open anzev/hedwig/build/pip/pip/_vendor/lockfile/mkdirlockfile.py/MkdirLockFile.release/original