-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
def utf8lize(obj):
if isinstance(obj, dict):
return {k: to_utf8(v) for k, v in obj.items()}
if isinstance(obj, list):
return [to_utf8(x) for x in ob]
if instance(obj, str):
return obj.encode('utf-8')
return objshould change return [to_utf8(x) for x in ob] to return [to_utf8(x) for x in obj] and ** if instance(obj, str):** should change to if isinstance(obj, str):
Metadata
Metadata
Assignees
Labels
No labels