Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
final json write mofified to help unicode mindset
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Oct 9, 2017
1 parent 0820e21 commit 5c4a872
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli4/cli4.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ def cli4(args):
results = results[0]

if output == 'json':
sys.stdout.write(json.dumps(results, indent=4, sort_keys=True) + '\n')
# sys.stdout.write(json.dumps(results, indent=4, sort_keys=True) + '\n')
json.dumps(results, sys.stdout, indent=4, sort_keys=True)
sys.stdout.write('\n')
if output == 'yaml':
sys.stdout.write(yaml.safe_dump(results))

0 comments on commit 5c4a872

Please sign in to comment.