Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
Set flow style for non-pretty YAML dumps (#133)
Browse files Browse the repository at this point in the history
The default changed from `None` to `False` in 5.1.
  • Loading branch information
cottsay authored and wjwwood committed Jul 10, 2019
1 parent 3a6a2d3 commit af1a841
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wstool/config_yaml.py
Expand Up @@ -446,7 +446,7 @@ def generate_config_yaml(config, filename, header, pretty=False,
content += yaml.safe_dump(items, allow_unicode=True,
default_flow_style=False)
else:
content += yaml.safe_dump(items)
content += yaml.safe_dump(items, default_flow_style=None)

if filename:
config_filepath = filename if os.path.isabs(filename) else \
Expand Down
2 changes: 1 addition & 1 deletion src/wstool/multiproject_cli.py
Expand Up @@ -1274,7 +1274,7 @@ def cmd_info(self, target_path, argv, reverse=True, config=None):
# but that command was not implemented.
source_aggregate = multiproject_cmd.cmd_snapshot(config,
localnames=args)
print(yaml.safe_dump(source_aggregate), end='')
print(yaml.safe_dump(source_aggregate, default_flow_style=None), end='')
return 0

# this call takes long, as it invokes scms.
Expand Down

0 comments on commit af1a841

Please sign in to comment.