def __check_deleted(self):
    if self.__deleted:
      raise errors.LockError("Deleted lock %s" % self.name)
Raises an exception if the lock has been deleted.
dataset/ETHPy150Open ganeti/ganeti/lib/locking.py/SharedLock.__check_deleted