Merge "Use yaml.safe_dump() instead of yaml.dump()"
This commit is contained in:
commit
1295f583a1
@ -112,7 +112,7 @@ def main():
|
||||
])
|
||||
|
||||
with open(passwords_file, 'w') as f:
|
||||
f.write(yaml.dump(passwords, default_flow_style=False))
|
||||
f.write(yaml.safe_dump(passwords, default_flow_style=False))
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
@ -32,7 +32,7 @@ def main():
|
||||
new_passwords.update(old_passwords)
|
||||
|
||||
with open(args.final, "w") as destination:
|
||||
yaml.dump(new_passwords, destination, default_flow_style=False)
|
||||
yaml.safe_dump(new_passwords, destination, default_flow_style=False)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user