mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-15 17:20:05 +00:00
fix bad use of yaml.dump
This commit is contained in:
@@ -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__':
|
||||||
|
|||||||
Reference in New Issue
Block a user