Skip to content

Commit

Permalink
Update YAML write to new ruamel implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
avanwinkle committed Mar 21, 2024
1 parent fdb30d0 commit c273272
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mpfmonitor/core/mpfmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ def load_config(self):
def save_config(self):
self.log.debug("Saving config to disk")
with open(self.config_file, 'w') as f:
f.write(yaml.dump(self.config, default_flow_style=False))
_yaml = yaml.YAML(typ='safe')
_yaml.default_flow_style = False
_yaml.dump(self.config, f)

def closeEvent(self, event):
self.write_local_settings()
Expand Down

0 comments on commit c273272

Please sign in to comment.