diff options
-rw-r--r-- | docs/model/current/schema/yaml2json.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/model/current/schema/yaml2json.py b/docs/model/current/schema/yaml2json.py index e891d04439..1b69ba9c92 100644 --- a/docs/model/current/schema/yaml2json.py +++ b/docs/model/current/schema/yaml2json.py @@ -24,5 +24,4 @@ import yaml for filename in glob.glob(u"*.schema.yaml"): name = filename[:-5] with open(f"{name}.yaml", u"r") as fin, open(f"{name}.json", u"w") as fout: - data = yaml.load(fin.read()) - json.dump(data, fout, indent=2) + json.dump(yaml.load(fin.read()), fout, indent=2) |