| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,6 @@ | |||
| 11 | 11 | ||
| 12 | 12 | """ | |
| 13 | 13 | import argparse | |
| 14 | - import collections | ||
| 15 | 14 | import json | |
| 16 | 15 | import sys | |
| 17 | 16 | ||
@@ -34,11 +33,7 @@ def main(): | |||
| 34 | 33 | sort_keys = options.sort_keys | |
| 35 | 34 | with infile: | |
| 36 | 35 | try: | |
| 37 | - if sort_keys: | ||
| 38 | - obj = json.load(infile) | ||
| 39 | - else: | ||
| 40 | - obj = json.load(infile, | ||
| 41 | - object_pairs_hook=collections.OrderedDict) | ||
| 36 | + obj = json.load(infile) | ||
| 42 | 37 | except ValueError as e: | |
| 43 | 38 | raise SystemExit(e) | |
| 44 | 39 | with outfile: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments