Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 731deb0

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

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎snippet_fmt/formatters.py

Copy file name to clipboardExpand all lines: snippet_fmt/formatters.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.