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

Method _parse_map

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

Source from the content-addressed store, hash-verified

881
882 # Major type 5 - maps
883 def _parse_map(self, stream, additional_info):
884 items = {}
885 if additional_info != self.INDEFINITE_ITEM_ADDITIONAL_INFO:
886 length = self._parse_unsigned_integer(stream, additional_info)
887 for _ in range(length):
888 self._parse_key_value_pair(stream, items)
889 return items
890
891 else:
892 while not self._handle_break_code(stream):
893 self._parse_key_value_pair(stream, items)
894 return items
895
896 def _parse_key_value_pair(self, stream, items):
897 key = self.parse_data_item(stream)

Callers

nothing calls this directly

Calls 3

_parse_key_value_pairMethod · 0.95
_handle_break_codeMethod · 0.95

Tested by

no test coverage detected