Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
PAL: Add boxpoints to all box graphs
[csit.git]
/
resources
/
tools
/
topology
/
update_topology.py
diff --git
a/resources/tools/topology/update_topology.py
b/resources/tools/topology/update_topology.py
index
4ba3a83
..
37d64b1
100755
(executable)
--- a/
resources/tools/topology/update_topology.py
+++ b/
resources/tools/topology/update_topology.py
@@
-37,7
+37,7
@@
def load_topology(args):
:rtype: dict
"""
data = None
:rtype: dict
"""
data = None
- with open(args.topology,
"r
") as stream:
+ with open(args.topology,
u"rt
") as stream:
try:
data = yaml.safe_load(stream)
except yaml.YAMLError as exc:
try:
data = yaml.safe_load(stream)
except yaml.YAMLError as exc:
@@
-153,7
+153,7
@@
def dump_updated_topology(topology, args):
f"overwrite this file, add -f as a parameter to this script"
)
return 1
f"overwrite this file, add -f as a parameter to this script"
)
return 1
- with open(args.output_file,
"w
") as stream:
+ with open(args.output_file,
u"wt
") as stream:
yaml.dump(topology, stream, default_flow_style=False)
else:
print(yaml.dump(topology, default_flow_style=False))
yaml.dump(topology, stream, default_flow_style=False)
else:
print(yaml.dump(topology, default_flow_style=False))