MCPcopy Create free account
hub / github.com/aws/aws-cli / _trim_buffer

Method _trim_buffer

awscli/customizations/logs/ui.py:675–679  ·  view source on GitHub ↗
(self, buffer: Buffer)

Source from the content-addressed store, hash-verified

673 )
674
675 async def _trim_buffer(self, buffer: Buffer):
676 lines_to_be_removed = max(
677 buffer.document.line_count - self._MAX_LINE_COUNT - 1, 0
678 )
679 return buffer.text.split("\n", lines_to_be_removed)[-1]
680
681 async def _trim_buffers(self):
682 while True:

Callers 3

handle_scrollingMethod · 0.95
_trim_buffersMethod · 0.95
test_trim_bufferMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_trim_bufferMethod · 0.64