def flush(self):
    '\n        Clear the local buffer and push it on.\n        '
    if (self._threadsafe and self._buffer):
        self._queue.put(self._buffer)
        self._buffer.clear()
Clear the local buffer and push it on.
def flush(self):
    '\n        \n        '
    if (self._threadsafe and self._buffer):
        self._queue.put(self._buffer)
        self._buffer.clear()