def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def close(self):
        super(QueueingLogHandler, self).close()
        self._queue.put_nowait(None)