def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def unlock(self, key):
    if self._tokens[key] > 0:
      self._tokens[key] -= 1