aboutsummaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-10-22 09:59:53 -0400
committerJack Lloyd <[email protected]>2015-10-22 09:59:53 -0400
commit69a5a56b38a309241126641149471a36137507a0 (patch)
treecfbe07fea29a55eaaa37edf1d80e32ac6a3d696d /src/python
parent00699302e9da4aa184115d9148b62b9affc3f029 (diff)
Add workaround for Python 3.2/3.3 behavior in binascii. GH #305
Diffstat (limited to 'src/python')
-rwxr-xr-xsrc/python/botan.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/botan.py b/src/python/botan.py
index 628a68040..95b71d6bc 100755
--- a/src/python/botan.py
+++ b/src/python/botan.py
@@ -87,7 +87,7 @@ def hex_encode(buf):
return hexlify(buf).decode('ascii')
def hex_decode(buf):
- return unhexlify(buf)
+ return unhexlify(buf.encode('ascii'))
"""
Versions