mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 18:51:06 -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:
committed by
Ryan Petrello
parent
def79de72b
commit
490746fe8c
@@ -130,7 +130,6 @@ def format_yaml(output, fmt):
|
|||||||
return yaml.safe_dump(
|
return yaml.safe_dump(
|
||||||
output,
|
output,
|
||||||
default_flow_style=False,
|
default_flow_style=False,
|
||||||
encoding='utf-8',
|
|
||||||
allow_unicode=True
|
allow_unicode=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user