| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import os.path | 6 import os.path |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 try: | 9 try: |
| 10 import json | 10 import json |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 domains += parsed_json["domains"] | 30 domains += parsed_json["domains"] |
| 31 version = parsed_json["version"] | 31 version = parsed_json["version"] |
| 32 | 32 |
| 33 output_file = open(argv[-1], "w") | 33 output_file = open(argv[-1], "w") |
| 34 json.dump({"version": version, "domains": domains}, output_file, indent=4, s
ort_keys=False, separators=(',', ': ')) | 34 json.dump({"version": version, "domains": domains}, output_file, indent=4, s
ort_keys=False, separators=(',', ': ')) |
| 35 output_file.close() | 35 output_file.close() |
| 36 | 36 |
| 37 | 37 |
| 38 if __name__ == '__main__': | 38 if __name__ == '__main__': |
| 39 sys.exit(main(sys.argv[1:])) | 39 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |