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 = {} |