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)
| 93 | return b64encode(s) |
| 94 | |
| 95 | def 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'-_') |
nothing calls this directly
no test coverage detected