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

Unified Diff: third_party/closure_compiler/compile_modules.py

Issue 410333002: Closure compilation config: switch from JSON to Python dict (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flattenhtml
Patch Set: Renamed compiled_resources.py => compiled.resources Created 6 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiled_resources.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/compile_modules.py
diff --git a/third_party/closure_compiler/compile_modules.py b/third_party/closure_compiler/compile_modules.py
index e661cc0b3ffb42674e9d2ca9eca64546bdb8434a..b9b9c717c590a7fd04dbfd9044ed8bd034d105e2 100755
--- a/third_party/closure_compiler/compile_modules.py
+++ b/third_party/closure_compiler/compile_modules.py
@@ -4,6 +4,7 @@
# found in the LICENSE file.
import argparse
+import ast
from checker import Checker as Checker
import os
try:
@@ -50,7 +51,7 @@ class ModuleParser(object):
return self._cache[file_path]
file = open(file_path, "r")
- data = json.load(file)
+ data = ast.literal_eval(file.read())
file.close()
if self._verbose:
« no previous file with comments | « compiled_resources.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698