Returns all buffered output, then clears the buffer.
(self)
| 81 | print(s) |
| 82 | |
| 83 | def get_buffer(self) -> str: |
| 84 | '''Returns all buffered output, then clears the buffer.''' |
| 85 | self.flush_section() |
| 86 | |
| 87 | buffer_str = "\n".join(self.buffer) |
| 88 | self.buffer = [] |
| 89 | return buffer_str |
| 90 | |
| 91 | def write(self) -> None: |
| 92 | '''Writes the output to stdout.''' |
no test coverage detected