Replace SJCL library with upstream version + python3 fixes

This commit is contained in:
l-n-s
2018-02-15 18:02:52 -05:00
committed by R4SAS
parent 7a88bf2efc
commit 5c2055cc7a
3 changed files with 23 additions and 16 deletions

View File

@@ -34,7 +34,7 @@ def json_loads_byteified(json_text):
def _byteify(data, ignore_dicts = False):
# if this is a unicode string, return its string representation
if isinstance(data, unicode):
if isinstance(data, str):
return data.encode('utf-8')
# if this is a list of values, return list of byteified values
if isinstance(data, list):