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

Method _encode_bytes

awscli/botocore/paginate.py:103–105  ·  view source on GitHub ↗

Base64 encode a byte string.

(self, data, path)

Source from the content-addressed store, hash-verified

101 return new_data, encoded
102
103 def _encode_bytes(self, data, path):
104 """Base64 encode a byte string."""
105 return base64.b64encode(data).decode('utf-8'), [path]
106
107
108class TokenDecoder:

Callers 1

_encodeMethod · 0.95

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected