def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def close(self):
        super(QueueingLogHandler, self).close()
        self._queue.put_nowait(None)