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

Method _encode_dict

awscli/botocore/paginate.py:92–101  ·  view source on GitHub ↗

Encode any bytes in a dict, noting the index of what is encoded.

(self, data, path)

Source from the content-addressed store, hash-verified

90 return new_data, encoded
91
92 def _encode_dict(self, data, path):
93 """Encode any bytes in a dict, noting the index of what is encoded."""
94 new_data = {}
95 encoded = []
96 for key, value in data.items():
97 new_path = path + [key]
98 new_value, new_encoded = self._encode(value, new_path)
99 new_data[key] = new_value
100 encoded.extend(new_encoded)
101 return new_data, encoded
102
103 def _encode_bytes(self, data, path):
104 """Base64 encode a byte string."""

Callers 1

_encodeMethod · 0.95

Calls 1

_encodeMethod · 0.95

Tested by

no test coverage detected