From 490746fe8cc8ca92d3085d122bece6342a5463c4 Mon Sep 17 00:00:00 2001 From: Rigel Di Scala Date: Mon, 3 Aug 2020 17:40:17 +0200 Subject: [PATCH] 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. --- awxkit/awxkit/cli/format.py | 1 - 1 file changed, 1 deletion(-) diff --git a/awxkit/awxkit/cli/format.py b/awxkit/awxkit/cli/format.py index 34b1cd5b29..e8c5a6903e 100644 --- a/awxkit/awxkit/cli/format.py +++ b/awxkit/awxkit/cli/format.py @@ -130,7 +130,6 @@ def format_yaml(output, fmt): return yaml.safe_dump( output, default_flow_style=False, - encoding='utf-8', allow_unicode=True )