encode/decode
This commit is contained in:
parent
26d3f1f8fb
commit
1e09e70574
7 changed files with 22 additions and 16 deletions
|
|
@ -34,7 +34,7 @@ def _to_json(python_object):
|
|||
|
||||
def json_dumps(obj):
|
||||
indent = 2
|
||||
return json.dumps(obj, indent=indent, default=_to_json, ensure_ascii=False).encode('utf-8')
|
||||
return json.dumps(obj, indent=indent, default=_to_json, ensure_ascii=False).encode()
|
||||
|
||||
def run_async(func):
|
||||
@wraps(func)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue