Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fix(uti): Fixing broken code part I
[csit.git]
/
docs
/
model
/
current
/
schema
/
yaml2json.py
diff --git
a/docs/model/current/schema/yaml2json.py
b/docs/model/current/schema/yaml2json.py
index
6927bc0
..
e891d04
100644
(file)
--- 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]
for filename in glob.glob(u"*.schema.yaml"):
name = filename[:-5]
- with open(f"{name}.yaml", u"r
t") as fin
:
+ with open(f"{name}.yaml", u"r
") as fin, open(f"{name}.json", u"w") as fout
:
data = yaml.load(fin.read())
data = yaml.load(fin.read())
- with open(f"{name}.json", u"wt") as fout:
json.dump(data, fout, indent=2)
json.dump(data, fout, indent=2)