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

Method _write_line_break

awscli/table.py:335–347  ·  view source on GitHub ↗
(self, stream, widths)

Source from the content-addressed store, hash-verified

333 stream.write(current + '\n')
334
335 def _write_line_break(self, stream, widths):
336 # Write out something like:
337 # +-------+---------+---------+
338 parts = []
339 first = True
340 for width in widths:
341 if first:
342 parts.append('+%s+' % ('-' * (width - 2)))
343 first = False
344 else:
345 parts.append('%s+' % ('-' * (width - 1)))
346 parts.append('\n')
347 stream.write(''.join(parts))
348
349 def _render_rows(self, section, max_width, stream):
350 if not section.rows:

Callers 2

_render_column_titlesMethod · 0.95
_render_rowsMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected