summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler/json_schema.py
diff options
context:
space:
mode:
authormiket@chromium.org <miket@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-07 02:33:35 +0000
committermiket@chromium.org <miket@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-07 02:33:35 +0000
commit750b83600136c3b9bfaf33bb60ec61c41010a150 (patch)
treeaead05297ea1f7ba6840c414917be091a5970dfb /tools/json_schema_compiler/json_schema.py
parent8a59a087de2604becfc5fb4fb691b45c37ca8795 (diff)
downloadchromium_src-750b83600136c3b9bfaf33bb60ec61c41010a150.zip
chromium_src-750b83600136c3b9bfaf33bb60ec61c41010a150.tar.gz
chromium_src-750b83600136c3b9bfaf33bb60ec61c41010a150.tar.bz2
- Extend compiler.py to recognize .idl files.
- Extend .gyp to pass certain .idl files to compiler.py. - Implement a translator taking IDL parser output and creating a schema that the JSON compiler recognizes. - Convert one API to IDL using asargent's JSON cat JSON-to-IDL converter, and adapt API's implementation to use the newly generated output. TEST=no changes BUG=none Review URL: http://codereview.chromium.org/9600050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125300 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler/json_schema.py')
-rw-r--r--tools/json_schema_compiler/json_schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/json_schema_compiler/json_schema.py b/tools/json_schema_compiler/json_schema.py
index aa192c0..779ec87 100644
--- a/tools/json_schema_compiler/json_schema.py
+++ b/tools/json_schema_compiler/json_schema.py
@@ -14,6 +14,6 @@ if third_party_path not in sys.path:
sys.path.insert(0, third_party_path)
import json_minify as minify
-def LoadJSON(filename):
+def Load(filename):
with open(filename, 'r') as handle:
return json.loads(minify.json_minify(handle.read()))