Issue #18011: base64.b32decode() now raises a binascii.Error if there are
non-alphabet characters present in the input string to conform a docstring.
Updated the module documentation.
diff --git a/Lib/base64.py b/Lib/base64.py
index 6bcdff6..b6e82b6 100755
--- a/Lib/base64.py
+++ b/Lib/base64.py
@@ -245,7 +245,7 @@
for c in s:
val = _b32rev.get(c)
if val is None:
- raise TypeError('Non-base32 digit found')
+ raise binascii.Error('Non-base32 digit found')
acc += _b32rev[c] << shift
shift -= 5
if shift < 0: