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