You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I can see the same error preventing JS calls sending arguments
"Recursively clone json structure with UTF-8 dictionary keys: http://www.gossamer-threads.com/lists/python/bugs/684379": def safe_dict(d): """ Recursively clone json structure with UTF-8 dictionary keys http://www.gossamer-threads.com/lists/python/bugs/684379 """ if isinstance(d, dict): return dict([(k, safe_dict(v)) for k, v in d.items()]) #return dict( # [(k.encode('utf-8'), safe_dict(v)) for k, v in d.iteritems()]) elif isinstance(d, list): return [safe_dict(x) for x in d] else: return d
The text was updated successfully, but these errors were encountered:
Hi
I can see the same error preventing JS calls sending arguments
"Recursively clone json structure with UTF-8 dictionary keys: http://www.gossamer-threads.com/lists/python/bugs/684379":
def safe_dict(d): """ Recursively clone json structure with UTF-8 dictionary keys http://www.gossamer-threads.com/lists/python/bugs/684379 """ if isinstance(d, dict): return dict([(k, safe_dict(v)) for k, v in d.items()]) #return dict( # [(k.encode('utf-8'), safe_dict(v)) for k, v in d.iteritems()]) elif isinstance(d, list): return [safe_dict(x) for x in d] else: return d
The text was updated successfully, but these errors were encountered: