mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Fix garbage being printed when exporting as YAML - related #7795
This resolves issue #7795, by passing the `encoding` keyword argument only when the code is run on a Python 2 interpreter. related #7795.
This commit is contained in:
parent
def79de72b
commit
490746fe8c
@ -130,7 +130,6 @@ def format_yaml(output, fmt):
|
||||
return yaml.safe_dump(
|
||||
output,
|
||||
default_flow_style=False,
|
||||
encoding='utf-8',
|
||||
allow_unicode=True
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user