aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2021-12-22 09:47:23 +0100
committerVratko Polak <vrpolak@cisco.com>2022-03-18 15:17:41 +0000
commit10bd74d4820e296cc35d5dc3ff671e43a07343bc (patch)
tree021511739a3584816f27a8642fce37ef7f6d91a7 /docs
parentdd6a90caaa9d478b7c21000c7cc1856a6415d612 (diff)
Shorten yaml2json.py even more
Change-Id: Ia314d7b33278bad6071d45ee851cedcdac1ee7c3 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/model/current/schema/yaml2json.py3
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)