Skip to content

Commit 731deb0

Browse files
committed
Set ensure_ascii to False by default for json serialisation.
1 parent 91d0962 commit 731deb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

snippet_fmt/formatters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def format_json(code: str, **config) -> str:
164164
config = config.copy()
165165

166166
if config.pop("reformat", False):
167+
config.setdefault("ensure_ascii", False)
167168
return json.dumps(json_content, **config)
168169
else:
169170
return code

0 commit comments

Comments
 (0)