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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user