From 84befb00bd099306583ae643431b8f858dded415 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Wed, 28 Jul 2010 00:23:21 +0000 Subject: [PATCH] Fix failure introduced in r83182. --- Lib/base64.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/base64.py b/Lib/base64.py index 20ed67dc1ac..faa3836e602 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