Override to implement custom flushing behaviour. This version just zaps the buffer to empty.
(self)
| 1350 | self.flush() |
| 1351 | |
| 1352 | def flush(self): |
| 1353 | """ |
| 1354 | Override to implement custom flushing behaviour. |
| 1355 | |
| 1356 | This version just zaps the buffer to empty. |
| 1357 | """ |
| 1358 | with self.lock: |
| 1359 | self.buffer.clear() |
| 1360 | |
| 1361 | def close(self): |
| 1362 | """ |