提交 c7fbcb57 编写于 作者: W w-e-w

remove space after comma and colon

上级 28cc18cb
...@@ -24,7 +24,7 @@ info_json_keys = set() ...@@ -24,7 +24,7 @@ info_json_keys = set()
def info_json_dumps(data): def info_json_dumps(data):
"""encode data into json string, but swap single and double quotes to reduce escaping issues""" """encode data into json string, but swap single and double quotes to reduce escaping issues"""
return json.dumps(data, ensure_ascii=False).translate(quote_swap) return json.dumps(data, ensure_ascii=False, separators=(',', ':')).translate(quote_swap)
def info_json_loads(info_json): def info_json_loads(info_json):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册