def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def resetLoggingTo(self, log):
        self._connection.logfile = log