1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 02:44:44 +00:00

fix bad use of yaml.dump

This commit is contained in:
deadc0de6
2021-02-20 13:27:47 +01:00
parent f0da6a6f9c
commit 6cd5755170

View File

@@ -48,8 +48,13 @@ def main():
continue
v[entry] = value
ret = yaml.dump(content, default_flow_style=False, indent=2)
print(ret)
output = io.StringIO()
y = yaml()
y.default_flow_style = False
y.indent = 2
y.typ = 'rt'
y.dump(content, output)
print(output)
if __name__ == '__main__':