diff options
Diffstat (limited to 'docs/model/current/schema/yaml2json.py')
-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 6927bc0172..e891d04439 100644 --- a/docs/model/current/schema/yaml2json.py +++ b/docs/model/current/schema/yaml2json.py @@ -23,7 +23,6 @@ import yaml for filename in glob.glob(u"*.schema.yaml"): name = filename[:-5] - with open(f"{name}.yaml", u"rt") as fin: + with open(f"{name}.yaml", u"r") as fin, open(f"{name}.json", u"w") as fout: data = yaml.load(fin.read()) - with open(f"{name}.json", u"wt") as fout: json.dump(data, fout, indent=2) |