Increase yaml.dump width to 255 characters
Change-Id: I2479f86f038cb801bc3257afaa7b302c45a34ef5
diff --git a/reclass_tools/walk_models.py b/reclass_tools/walk_models.py
index beeb27c..533a120 100644
--- a/reclass_tools/walk_models.py
+++ b/reclass_tools/walk_models.py
@@ -190,7 +190,7 @@
with open(fyml.fname, 'w') as f:
f.write(
yaml.dump(
- model, default_flow_style=False
+ model, default_flow_style=False, width=255
)
)
@@ -226,19 +226,22 @@
print("\n---\n# Found {0} in {1}"
.format('.'.join(remove_key), fyml.fname))
print(yaml.dump(nested_key,
- default_flow_style=False))
+ default_flow_style=False,
+ width=255))
else:
print("\n---\n# Removing {0} from {1}"
.format('.'.join(remove_key), fyml.fname))
print(yaml.dump(nested_key,
- default_flow_style=False))
+ default_flow_style=False,
+ width=255))
helpers.remove_nested_key(model, remove_key)
with open(fyml.fname, 'w') as f:
f.write(
yaml.dump(
- model, default_flow_style=False
+ model, default_flow_style=False,
+ width=255
)
)
# return found_keys