]> granicus.if.org Git - python/commitdiff
Issue #18011: Silence an unrelated noise introduced in changeset 1b5ef05d6ced.
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 28 May 2013 12:42:34 +0000 (15:42 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 28 May 2013 12:42:34 +0000 (15:42 +0300)
Lib/base64.py

index f923244104e3bea996e3c6e5ef973a53ebaa173e..9c15752fe3123520ba236be27f3ad06953304707 100755 (executable)
@@ -222,7 +222,7 @@ def b32decode(s, casefold=False, map01=None):
             for c in quanta:
                 acc = (acc << 5) + b32rev[c]
         except KeyError:
-            raise binascii.Error('Non-base32 digit found')
+            raise binascii.Error('Non-base32 digit found') from None
         decoded += acc.to_bytes(5, 'big')
     # Process the last, partial quanta
     if padchars: