Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

Commit

Permalink
Add the option to receive data in any encoding
Browse files Browse the repository at this point in the history
 Add the option to use binary data (e.g msgpack)
in the put/get methods.
  • Loading branch information
lihiwish authored and dims committed Sep 5, 2017
1 parent f30a4c5 commit f4a7f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etcd3gw/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f4a7f59

Please sign in to comment.