(self)
| 94 | self.flush() |
| 95 | |
| 96 | def flush(self): |
| 97 | with self._lock: |
| 98 | self.buffer.write(b"".join(self._pending_bytes)) |
| 99 | self._pending_bytes.clear() |
| 100 | self._pending_bytes_count = 0 |
| 101 | |
| 102 | # Since this is a line-based logging system, line buffering cannot be turned |
| 103 | # off, i.e. a newline always causes a flush. |
no test coverage detected