Override to implement custom flushing behaviour. This version just zaps the buffer to empty.
(self)
| 1370 | self.flush() |
| 1371 | |
| 1372 | def flush(self): |
| 1373 | """ |
| 1374 | Override to implement custom flushing behaviour. |
| 1375 | |
| 1376 | This version just zaps the buffer to empty. |
| 1377 | """ |
| 1378 | with self.lock: |
| 1379 | self.buffer.clear() |
| 1380 | |
| 1381 | def close(self): |
| 1382 | """ |