Revert "utils: fix bug when decoding"
Causes failure in Tooz. Reverting for now:224f40972bThis reverts commit224f40972b.
This commit is contained in:
@@ -38,7 +38,7 @@ def _decode(data):
|
|||||||
"""
|
"""
|
||||||
if not isinstance(data, bytes_types):
|
if not isinstance(data, bytes_types):
|
||||||
data = six.b(str(data))
|
data = six.b(str(data))
|
||||||
return base64.b64decode(data).decode("utf-8")
|
return base64.b64decode(data.decode("utf-8"))
|
||||||
|
|
||||||
|
|
||||||
def _increment_last_byte(data):
|
def _increment_last_byte(data):
|
||||||
|
|||||||
Reference in New Issue
Block a user