MCPcopy
hub / github.com/jtesta/ssh-audit / flush_section

Method flush_section

src/ssh_audit/outputbuffer.py:131–137  ·  view source on GitHub ↗

Appends section output (optionally sorting it first) to the end of the buffer, then clears the section output.

(self, sort_section: bool = False)

Source from the content-addressed store, hash-verified

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.'''

Callers 9

get_bufferMethod · 0.95
writeMethod · 0.95
resetMethod · 0.95
output_algorithmsFunction · 0.80
output_securityFunction · 0.80
output_fingerprintsFunction · 0.80
output_recommendationsFunction · 0.80
output_infoFunction · 0.80
outputFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected