def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def close(self):
        time.sleep(0.1)
        self.sock.close()
        return 0