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:
committed by
Davanum Srinivas
parent
f30a4c552e
commit
f4a7f59954
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user