Skip to content

Commit 08c958f

Browse files
committed
fix so that yaml prints in readable fashion
1 parent c39375d commit 08c958f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autolab_core/yaml_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def iteritems(self):
7070

7171
def save(self, filename):
7272
""" Save a YamlConfig to disk. """
73-
yaml.dump(self, open(filename, 'w'))
73+
y = yaml.YAML()
74+
y.dump(self.config, open(filename, 'w'))
7475

7576
def _load_config(self, filename):
7677
"""Loads a yaml configuration file from the given filename.

0 commit comments

Comments
 (0)