1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

formatting

This commit is contained in:
Kelly Brazil
2022-04-27 08:26:12 -07:00
parent 9b1fe0d9a4
commit f7b64a5762

View File

@ -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)