1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-15 18:30:05 +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 continue
v[entry] = value v[entry] = value
ret = yaml.dump(content, default_flow_style=False, indent=2) output = io.StringIO()
print(ret) y = yaml()
y.default_flow_style = False
y.indent = 2
y.typ = 'rt'
y.dump(content, output)
print(output)
if __name__ == '__main__': if __name__ == '__main__':