Add the option to receive data in any encoding

Add the option to use binary data (e.g msgpack)
in the put/get methods.
This commit is contained in:
Lihi Wishnitzer
2017-09-04 14:45:40 +03:00
committed by Davanum Srinivas
parent f30a4c552e
commit f4a7f59954

View File

@@ -38,7 +38,7 @@ def _decode(data):
"""
if not isinstance(data, bytes_types):
data = six.b(str(data))
return base64.b64decode(data).decode("utf-8")
return base64.b64decode(data.decode("utf-8"))
def _increment_last_byte(data):