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

Method _format_inline

awscli/errorhandler.py:89–95  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

87 return False
88
89 def _format_inline(self, value):
90 if isinstance(value, list):
91 return f"[{', '.join(str(item) for item in value)}]"
92 elif isinstance(value, dict):
93 items = ', '.join(f'{k}: {v}' for k, v in value.items())
94 return f'{{{items}}}'
95 return str(value)
96
97 def _get_additional_fields(self, error_info):
98 standard_keys = {'code', 'message'}

Callers 1

format_errorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected