diff options
Diffstat (limited to 'jsonschema/_utils.py')
-rw-r--r-- | jsonschema/_utils.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/jsonschema/_utils.py b/jsonschema/_utils.py index 3125f1e..15e2089 100644 --- a/jsonschema/_utils.py +++ b/jsonschema/_utils.py @@ -58,19 +58,6 @@ def load_schema(name): return json.loads(data.decode("utf-8")) -def load_vocabulary(name): - """ - Load all schema files from ./schemas/``name`` and return them as a list. - """ - vocabulary = [] - base_path = os.path.dirname(sys.modules["jsonschema"].__file__) - pathlist = Path(os.path.join(base_path, "schemas", name)).glob("*.json") - for path in pathlist: - with open(path) as data: - vocabulary.append(json.load(data)) - return vocabulary - - def format_as_index(container, indices): """ Construct a single string containing indexing operations for the indices. |