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

Unified Diff: tools/json_schema_compiler/json_schema.py

Issue 10381089: Revert 136296 - Make all extension api types fully qualified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « tools/json_schema_compiler/idl_schema_test.py ('k') | tools/json_schema_compiler/model_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/json_schema.py
===================================================================
--- tools/json_schema_compiler/json_schema.py (revision 136322)
+++ tools/json_schema_compiler/json_schema.py (working copy)
@@ -10,7 +10,6 @@
_script_path = os.path.realpath(__file__)
sys.path.insert(0, os.path.normpath(_script_path + "/../../"))
import json_comment_eater
-import schema_util
def DeleteNocompileNodes(item):
def HasNocompile(thing):
@@ -33,11 +32,10 @@
def Load(filename):
with open(filename, 'r') as handle:
- schemas = DeleteNocompileNodes(
+ return DeleteNocompileNodes(
json.loads(json_comment_eater.Nom(handle.read())))
- schema_util.PrefixSchemasWithNamespace(schemas)
- return schemas
+
# A dictionary mapping |filename| to the object resulting from loading the JSON
# at |filename|.
_cache = {}
« no previous file with comments | « tools/json_schema_compiler/idl_schema_test.py ('k') | tools/json_schema_compiler/model_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698