Appends section output (optionally sorting it first) to the end of the buffer, then clears the section output.
(self, sort_section: bool = False)
| 129 | self.in_section = False |
| 130 | |
| 131 | def flush_section(self, sort_section: bool = False) -> None: |
| 132 | '''Appends section output (optionally sorting it first) to the end of the buffer, then clears the section output.''' |
| 133 | if sort_section: |
| 134 | self.section.sort() |
| 135 | |
| 136 | self.buffer.extend(self.section) |
| 137 | self.section = [] |
| 138 | |
| 139 | def is_section_empty(self) -> bool: |
| 140 | '''Returns True if the section buffer is empty, otherwise False.''' |
no outgoing calls
no test coverage detected