Skip to content

Commit

Permalink
update yml dump allow unicode & default flow style
Browse files Browse the repository at this point in the history
Yaml dump the right way #167
  • Loading branch information
aahnik committed Jun 10, 2021
1 parent eb73a9f commit 3251ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgcf/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def write_config(config: Config):
"""Write changes in config back to file."""
if CONFIG_TYPE == 1 or CONFIG_TYPE == 0:
with open(CONFIG_FILE_NAME, "w") as file:
yaml.dump(config.dict(), file, sort_keys=False, default_flow_style=None)
yaml.dump(config.dict(), file, sort_keys=False, allow_unicode=True)
elif CONFIG_TYPE == 2:
logging.warning("Could not update config! As env var is used")

Expand Down

0 comments on commit 3251ba8

Please sign in to comment.