]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34736: improve error message for invalid length b64decode inputs (GH-9563)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 28 Sep 2018 06:12:54 +0000 (23:12 -0700)
committerGitHub <noreply@github.com>
Fri, 28 Sep 2018 06:12:54 +0000 (23:12 -0700)
commit7e35081bc828291da5793db49ab45dee4fda5043
treec618c563de39502023315b3ba8c9979839c78903
parent85ccedc5b57ddda198e7176ba787e3896435c504
bpo-34736: improve error message for invalid length b64decode inputs (GH-9563)

Improvements:
1. Include the number of valid data characters in the error message.
2. Mention "number of data characters" rather than "length".

https://bugs.python.org/issue34736
(cherry picked from commit 1fba2ffc37da52c08db51fe4360459990b0311c9)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Lib/test/test_binascii.py
Modules/binascii.c