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