MCPcopy Index your code
hub / github.com/RustPython/RustPython / standard_b64decode

Function standard_b64decode

Lib/base64.py:95–103  ·  view source on GitHub ↗

Decode bytes encoded with the standard Base64 alphabet. Argument s is a bytes-like object or ASCII string to decode. The result is returned as a bytes object. A binascii.Error is raised if the input is incorrectly padded. Characters that are not in the standard alphabet are disca

(s)

Source from the content-addressed store, hash-verified

93 return b64encode(s)
94
95def standard_b64decode(s):
96 """Decode bytes encoded with the standard Base64 alphabet.
97
98 Argument s is a bytes-like object or ASCII string to decode. The result
99 is returned as a bytes object. A binascii.Error is raised if the input
100 is incorrectly padded. Characters that are not in the standard alphabet
101 are discarded prior to the padding check.
102 """
103 return b64decode(s)
104
105
106_urlsafe_encode_translation = bytes.maketrans(b'+/', b'-_')

Callers

nothing calls this directly

Calls 1

b64decodeFunction · 0.85

Tested by

no test coverage detected