From: Ezio Melotti Date: Wed, 28 Jul 2010 00:23:21 +0000 (+0000) Subject: Fix failure introduced in r83182. X-Git-Tag: v3.2a1~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84befb00bd099306583ae643431b8f858dded415;p=python Fix failure introduced in r83182. --- diff --git a/Lib/base64.py b/Lib/base64.py index 20ed67dc1a..faa3836e60 100755 --- a/Lib/base64.py +++ b/Lib/base64.py @@ -241,7 +241,7 @@ def b32decode(s, casefold=False, map01=None): acc += _b32rev[c] << shift shift -= 5 if shift < 0: - parts.append(binascii.unhexlify('%010x' % acc)) + parts.append(binascii.unhexlify(bytes('%010x' % acc, "ascii"))) acc = 0 shift = 35 # Process the last, partial quanta