1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 04:49:17 +00:00

migrate to yaml.safe_dump

This commit is contained in:
deadc0de6
2019-04-02 21:07:49 +02:00
parent 672d8c63a7
commit 15dd13f8b4
2 changed files with 10 additions and 5 deletions

View File

@@ -79,7 +79,8 @@ class TestConfig(unittest.TestCase):
# save the new config
with open(confpath, 'w') as f:
yaml.dump(content, f, default_flow_style=False, indent=2)
yaml.safe_dump(content, f, default_flow_style=False,
indent=2)
# do the tests
conf = Cfg(confpath)
@@ -109,7 +110,8 @@ class TestConfig(unittest.TestCase):
# save the new config
with open(confpath, 'w') as f:
yaml.dump(content, f, default_flow_style=False, indent=2)
yaml.safe_dump(content, f, default_flow_style=False,
indent=2)
# do the tests
conf = Cfg(confpath)