Skip to content
Browse files

- Python-API: fixed the handling of bytearray values in Python 2.6

  • Loading branch information...
1 parent 6d7a106 commit 71f7b44b8e92d862ae5bdaaa8770ce9e4cffef3d committed Jul 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 python-api/
2 python-api/
@@ -80,7 +80,7 @@ def encode_value(value):
Encodes the value to the form required by the scalaris JSON API
if isinstance(value, bytearray):
- return {'type': 'as_bin', 'value': (base64.b64encode(value)).decode('ascii')}
+ return {'type': 'as_bin', 'value': (base64.b64encode(bytes(value))).decode('ascii')}
return {'type': 'as_is', 'value': value}

0 comments on commit 71f7b44

Please sign in to comment.
Something went wrong with that request. Please try again.