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

Method _document_str

awscli/botocore/docs/sharedexample.py:169–173  ·  view source on GitHub ↗
(self, section, value, path)

Source from the content-addressed store, hash-verified

167 self._end_nested_value(list_section_end, '],')
168
169 def _document_str(self, section, value, path):
170 # We do the string conversion because this might accept a type that
171 # we don't specifically address.
172 safe_value = escape_controls(value)
173 section.write(f"'{str(safe_value)}',")
174
175 def _document_number(self, section, value, path):
176 section.write(f"{str(value)},")

Callers 1

_documentMethod · 0.95

Calls 2

escape_controlsFunction · 0.90
writeMethod · 0.45

Tested by

no test coverage detected