summaryrefslogtreecommitdiffstats
path: root/Lib/base64.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-05-28 12:27:29 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-05-28 12:27:29 (GMT)
commitea2b490f3dad99cfd677be9fd0c730622a723f38 (patch)
treeac37b1311dcd38f2aa9f56ffe92d50856fbee6b3 /Lib/base64.py
parentfef952a60749477cb612203cd09d208869b6e5e2 (diff)
downloadcpython-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-xLib/base64.py2
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: