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

Method _parse_array

awscli/botocore/parsers.py:872–880  ·  view source on GitHub ↗
(self, stream, additional_info)

Source from the content-addressed store, hash-verified

870
871 # Major type 4 - lists
872 def _parse_array(self, stream, additional_info):
873 if additional_info != self.INDEFINITE_ITEM_ADDITIONAL_INFO:
874 length = self._parse_unsigned_integer(stream, additional_info)
875 return [self.parse_data_item(stream) for _ in range(length)]
876 else:
877 items = []
878 while not self._handle_break_code(stream):
879 items.append(self.parse_data_item(stream))
880 return items
881
882 # Major type 5 - maps
883 def _parse_map(self, stream, additional_info):

Callers

nothing calls this directly

Calls 3

parse_data_itemMethod · 0.95
_handle_break_codeMethod · 0.95

Tested by

no test coverage detected