diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-05-28 12:27:29 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-05-28 12:27:29 (GMT) |
commit | ea2b490f3dad99cfd677be9fd0c730622a723f38 (patch) | |
tree | ac37b1311dcd38f2aa9f56ffe92d50856fbee6b3 /Lib/base64.py | |
parent | fef952a60749477cb612203cd09d208869b6e5e2 (diff) | |
download | cpython-ea2b490f3dad99cfd677be9fd0c730622a723f38.zip cpython-ea2b490f3dad99cfd677be9fd0c730622a723f38.tar.gz cpython-ea2b490f3dad99cfd677be9fd0c730622a723f38.tar.bz2 |
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.
Diffstat (limited to 'Lib/base64.py')
-rwxr-xr-x | Lib/base64.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ def b32decode(s, casefold=False, map01=None): 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: |