X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=docs%2Fmodel%2Fcurrent%2Fschema%2Fyaml2json.py;fp=docs%2Fmodel%2Fcurrent%2Fschema%2Fyaml2json.py;h=1b69ba9c92e7faffc246d2e48b7c2c5b6ff91d10;hp=e891d04439d0f86443c8a5ea2b3e1c64c0380486;hb=10bd74d4820e296cc35d5dc3ff671e43a07343bc;hpb=dd6a90caaa9d478b7c21000c7cc1856a6415d612 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)