Bug report
Some functions in the base64 module used assert to check parameters. This is a bad practice, because in best case you will get different exceptions for invalid parameter values depending on the -O level. In worst case you can get incorrect result.
Most of such asserts were recently removed, but the one in base64.b32encode() was left.
This behavior was documented, so we do not need to backport the change.
Linked PRs
Bug report
Some functions in the
base64module usedassertto check parameters. This is a bad practice, because in best case you will get different exceptions for invalid parameter values depending on the-Olevel. In worst case you can get incorrect result.Most of such asserts were recently removed, but the one in
base64.b32encode()was left.This behavior was documented, so we do not need to backport the change.
Linked PRs