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

Method _end_structure

awscli/botocore/docs/example.py:167–177  ·  view source on GitHub ↗
(self, section, start, end)

Source from the content-addressed store, hash-verified

165 section.write(end)
166
167 def _end_structure(self, section, start, end):
168 # If there are no members in the strucuture, then make sure the
169 # start and the end bracket are on the same line, by removing all
170 # previous text and writing the start and end.
171 if not section.available_sections:
172 section.clear_text()
173 section.write(start + end)
174 self._end_nested_param(section)
175 else:
176 end_bracket_section = section.add_new_section('ending-bracket')
177 self._end_nested_param(end_bracket_section, end)
178
179
180class ResponseExampleDocumenter(BaseExampleDocumenter):

Calls 4

_end_nested_paramMethod · 0.95
clear_textMethod · 0.45
writeMethod · 0.45
add_new_sectionMethod · 0.45

Tested by

no test coverage detected