def reacquire(self):
        """
        Resets a TTL of an already acquired lock back to a timeout value.
        """
        if self.local.token is None:
            raise LockError("Cannot reacquire an unlocked lock")
        if self.timeout is None:
            raise LockError("Cannot reacquire a lock with no timeout")
        return self.do_reacquire()
def reacquire ( self ) : if self . local . token is None : raise LockError ( "Cannot reacquire an unlocked lock" ) if self . timeout is None : raise LockError ( "Cannot reacquire a lock with no timeout" ) return self . do_reacquire ( )
Resets a TTL of an already acquired lock back to a timeout value.