def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def update_join():
  update_on()
  try:
    _thread.join()
  except:
    update_off()