From f4a7f599549ebe9c561b83c0b8795672f4d7ce2f Mon Sep 17 00:00:00 2001 From: Lihi Wishnitzer Date: Mon, 4 Sep 2017 14:45:40 +0300 Subject: [PATCH] Add the option to receive data in any encoding Add the option to use binary data (e.g msgpack) in the put/get methods. --- etcd3gw/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etcd3gw/utils.py b/etcd3gw/utils.py index 386bd1e..e3ba8f7 100644 --- a/etcd3gw/utils.py +++ b/etcd3gw/utils.py @@ -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):