Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f320be7 commit 2812d3dCopy full SHA for 2812d3d
1 file changed
Lib/json/tool.py
@@ -11,7 +11,6 @@
11
12
"""
13
import argparse
14
-import collections
15
import json
16
import sys
17
@@ -34,11 +33,7 @@ def main():
34
33
sort_keys = options.sort_keys
35
with infile:
36
try:
37
- if sort_keys:
38
- obj = json.load(infile)
39
- else:
40
- obj = json.load(infile,
41
- object_pairs_hook=collections.OrderedDict)
+ obj = json.load(infile)
42
except ValueError as e:
43
raise SystemExit(e)
44
with outfile:
0 commit comments