MCPcopy Index your code
hub / github.com/aws/aws-cli / _format_scalar_list

Function _format_scalar_list

awscli/text.py:64–71  ·  view source on GitHub ↗
(elements, identifier, stream)

Source from the content-addressed store, hash-verified

62
63
64def _format_scalar_list(elements, identifier, stream):
65 if identifier is not None:
66 for item in elements:
67 stream.write('%s\t%s\n' % (identifier.upper(), item))
68 else:
69 # For a bare list, just print the contents.
70 stream.write('\t'.join([str(item) for item in elements]))
71 stream.write('\n')
72
73
74def _format_dict(scalar_keys, item, identifier, stream):

Callers 1

_format_listFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected