bpo-34736: improve error message for invalid length b64decode inputs (GH-9563)
authorTal Einat <taleinat+github@gmail.com>
Fri, 28 Sep 2018 05:57:22 +0000 (08:57 +0300)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 28 Sep 2018 05:57:22 +0000 (22:57 -0700)
commit1fba2ffc37da52c08db51fe4360459990b0311c9
tree1e4f16b34025650937e3f9b5285351e2b8de7c59
parent9df346bf98069a87de14a3c2f69009d800994c63
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
Lib/test/test_binascii.py
Modules/binascii.c