aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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