Commit b25da5d3 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files remove OrderedDict

This is not useful since we use sort_keys.
Moreover, this prevents the tests from running on Python 2.6.
parent 41dc81c3
from __future__ import print_function
import json
import sys
from collections import OrderedDict
import argparse
......@@ -13,7 +12,7 @@ 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),
sort_keys=not args.unsorted,
indent=None if args.one_line else 2))
Markdown is supported
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