Commit b0053cd2 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files 2to3

parent 49764000
from __future__ import print_function
import json
import sys
from collections import OrderedDict
......@@ -12,8 +13,8 @@ parser.add_argument('file', nargs='?', type=argparse.FileType('r'), default=sys.
args = parser.parse_args()
json_data =
print json.dumps(json.loads(json_data, object_pairs_hook=OrderedDict),
print(json.dumps(json.loads(json_data, object_pairs_hook=OrderedDict),
sort_keys=not args.unsorted,
indent=None if args.one_line else 2)
indent=None if args.one_line else 2))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment