Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Side by Side Diff: third_party/inspector_protocol/ConcatenateProtocols.py

Issue 2452853002: [inspector] use own version of third_party/inspector_protocol (Closed)
Patch Set: supported new inspector_protocol location in components/ui_devtools/BUILD.gn Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/inspector_protocol/CodeGenerator.py ('k') | third_party/inspector_protocol/LICENSE » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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:]))
OLDNEW
« no previous file with comments | « third_party/inspector_protocol/CodeGenerator.py ('k') | third_party/inspector_protocol/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698