mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-13 01:20:24 +02:00
formatting
This commit is contained in:
18
jc/cli.py
18
jc/cli.py
@ -89,18 +89,18 @@ def safe_print_json(string, pretty=None, env_colors=None, mono=None,
|
|||||||
"""Safely prints JSON output in both UTF-8 and ASCII systems"""
|
"""Safely prints JSON output in both UTF-8 and ASCII systems"""
|
||||||
try:
|
try:
|
||||||
print(json_out(string,
|
print(json_out(string,
|
||||||
pretty=pretty,
|
pretty=pretty,
|
||||||
env_colors=env_colors,
|
env_colors=env_colors,
|
||||||
mono=mono,
|
mono=mono,
|
||||||
piped_out=piped_out),
|
piped_out=piped_out),
|
||||||
flush=flush)
|
flush=flush)
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
print(json_out(string,
|
print(json_out(string,
|
||||||
pretty=pretty,
|
pretty=pretty,
|
||||||
env_colors=env_colors,
|
env_colors=env_colors,
|
||||||
mono=mono,
|
mono=mono,
|
||||||
piped_out=piped_out,
|
piped_out=piped_out,
|
||||||
ascii_only=True),
|
ascii_only=True),
|
||||||
flush=flush)
|
flush=flush)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user