MCPcopy Index your code
hub / github.com/python/cpython / standard_b64decode

Function standard_b64decode

Lib/base64.py:140–148  ·  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

138 return b64encode(s)
139
140def standard_b64decode(s):
141 """Decode bytes encoded with the standard Base64 alphabet.
142
143 Argument s is a bytes-like object or ASCII string to decode. The result
144 is returned as a bytes object. A binascii.Error is raised if the input
145 is incorrectly padded. Characters that are not in the standard alphabet
146 are discarded prior to the padding check.
147 """
148 return b64decode(s)
149
150
151_urlsafe_decode_translation = bytes.maketrans(b'-_', b'+/')

Callers

nothing calls this directly

Calls 1

b64decodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…