]> granicus.if.org Git - python/commitdiff
Fix failure introduced in r83182.
authorEzio Melotti <ezio.melotti@gmail.com>
Wed, 28 Jul 2010 00:23:21 +0000 (00:23 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Wed, 28 Jul 2010 00:23:21 +0000 (00:23 +0000)
Lib/base64.py

index 20ed67dc1acad56573b64180e897381e4007a45d..faa3836e60250d47149cdb117dc32741ed209696 100755 (executable)
@@ -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