MCPcopy
hub / github.com/aws/aws-cli / _decode

Method _decode

awscli/botocore/paginate.py:138–144  ·  view source on GitHub ↗

Find each encoded value and decode it.

(self, token, encoded_keys)

Source from the content-addressed store, hash-verified

136 return self._decode(decoded_token, encoded_keys)
137
138 def _decode(self, token, encoded_keys):
139 """Find each encoded value and decode it."""
140 for key in encoded_keys:
141 encoded = self._path_get(token, key)
142 decoded = base64.b64decode(encoded.encode('utf-8'))
143 self._path_set(token, key, decoded)
144 return token
145
146 def _path_get(self, data, path):
147 """Return the nested data at the given path.

Callers 1

decodeMethod · 0.95

Calls 3

_path_getMethod · 0.95
_path_setMethod · 0.95
encodeMethod · 0.45

Tested by

no test coverage detected