Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit a25a4a9

Browse files
committed
unwonnd json write
1 parent 0d61289 commit a25a4a9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cli4/cli4.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ def cli4(args):
282282
results = results[0]
283283

284284
if output == 'json':
285-
# sys.stdout.write(json.dumps(results, indent=4, sort_keys=True) + '\n')
286-
json.dumps(results, sys.stdout, indent=4, sort_keys=True)
287-
sys.stdout.write('\n')
285+
sys.stdout.write(json.dumps(results, indent=4, sort_keys=True) + '\n')
286+
# json.dumps(results, sys.stdout, indent=4, sort_keys=True)
287+
# sys.stdout.write('\n')
288288
if output == 'yaml':
289289
sys.stdout.write(yaml.safe_dump(results))
290290

0 commit comments

Comments
 (0)