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

Function _partition_list

awscli/text.py:53–61  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

51
52
53def _partition_list(item):
54 scalars = []
55 non_scalars = []
56 for element in item:
57 if isinstance(element, (list, dict)):
58 non_scalars.append(element)
59 else:
60 scalars.append(element)
61 return scalars, non_scalars
62
63
64def _format_scalar_list(elements, identifier, stream):

Callers 1

_format_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected