summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-07-28 00:23:21 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-07-28 00:23:21 (GMT)
commit84befb00bd099306583ae643431b8f858dded415 (patch)
treeff848b5f6f3e7a940427ddfd8e74f4eedd532654
parentcf448832ebca7ed34809168660fa96c3c61f8abb (diff)
downloadcpython-84befb00bd099306583ae643431b8f858dded415.zip
cpython-84befb00bd099306583ae643431b8f858dded415.tar.gz
cpython-84befb00bd099306583ae643431b8f858dded415.tar.bz2
Fix failure introduced in r83182.
-rwxr-xr-xLib/base64.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/base64.py b/Lib/base64.py
index 20ed67d..faa3836 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