mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Remove load_json fn from manifest
This commit is contained in:
parent
bd56e810b2
commit
2c20b593b4
1 changed files with 0 additions and 9 deletions
|
@ -89,15 +89,6 @@ class Manifest(object):
|
||||||
self.packages = self.data['packages'] if 'packages' in self.data else {}
|
self.packages = self.data['packages'] if 'packages' in self.data else {}
|
||||||
self.plugins = self.data['plugins'] if 'plugins' in self.data else {}
|
self.plugins = self.data['plugins'] if 'plugins' in self.data else {}
|
||||||
|
|
||||||
def load_json(self, path):
|
|
||||||
"""Loads JSON. Unused and will be removed.
|
|
||||||
Use common.tools.load_json instead
|
|
||||||
"""
|
|
||||||
import json
|
|
||||||
from minify_json import json_minify
|
|
||||||
with open(path) as stream:
|
|
||||||
return json.loads(json_minify(stream.read(), False))
|
|
||||||
|
|
||||||
def schema_validator(self, data, schema_path):
|
def schema_validator(self, data, schema_path):
|
||||||
"""This convenience function is passed around to all the validation functions
|
"""This convenience function is passed around to all the validation functions
|
||||||
so that they may run a json-schema validation by giving it the data and a path to the schema.
|
so that they may run a json-schema validation by giving it the data and a path to the schema.
|
||||||
|
|
Loading…
Add table
Reference in a new issue