8000 Disabled ASCII conversion in order to improve console output encoding… · PythonExpert/python-fire@379dd0a · GitHub
[go: up one dir, main page]

Skip to content

Commit 379dd0a

Browse files
jaesbitdbieber
authored andcommitted
Disabled ASCII conversion in order to improve console output encoding… (google#87)
* Disabled ASCII conversion from json.dumps in order to improve console output encoding/printing.
1 parent 6c3331f commit 379dd0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fire/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ def _OneLineResult(result):
262262
return str(result).replace('\n', ' ')
263263

264264
try:
265-
return json.dumps(result)
265+
# non-forced to ascii convert
266+
return json.dumps(result, ensure_ascii=False)
266267
except (TypeError, ValueError):
267268
return str(result).replace('\n', ' ')
268269

0 commit comments

Comments
 (0)
0