summaryrefslogtreecommitdiff
path: root/Lib/json
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/json')
-rw-r--r--Lib/json/tool.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/json/tool.py b/Lib/json/tool.py
index 4f3182c0c1..5932f4ecde 100644
--- a/Lib/json/tool.py
+++ b/Lib/json/tool.py
@@ -11,7 +11,6 @@ Usage::
"""
import argparse
-import collections
import json
import sys
@@ -34,11 +33,7 @@ def main():
sort_keys = options.sort_keys
with infile:
try:
- if sort_keys:
- obj = json.load(infile)
- else:
- obj = json.load(infile,
- object_pairs_hook=collections.OrderedDict)
+ obj = json.load(infile)
except ValueError as e:
raise SystemExit(e)
with outfile: