From 1c477fb1cc0a6203eb5fc22b0f99ad262d959215 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sun, 12 May 2019 12:23:30 +0200 Subject: Stop setting utf-8 in decode/encode calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's the default value. Change-Id: I301f750cabc41a1564a700ae8d7328f195a4ae9b Signed-off-by: Cédric Ollivier (cherry picked from commit 0d308f4db3434ae6f8147f0f452e5c542429e636) --- xtesting/core/feature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtesting/core/feature.py') diff --git a/xtesting/core/feature.py b/xtesting/core/feature.py index f28e720c..6d5d7410 100644 --- a/xtesting/core/feature.py +++ b/xtesting/core/feature.py @@ -113,8 +113,8 @@ class BashFeature(Feature): stderr=subprocess.STDOUT) for line in iter(process.stdout.readline, b''): if console: - sys.stdout.write(line.decode("utf-8")) - f_stdout.write(line.decode("utf-8")) + sys.stdout.write(line.decode()) + f_stdout.write(line.decode()) process.wait() with open(self.result_file, 'r') as f_stdin: self.__logger.debug("$ %s\n%s", cmd, f_stdin.read().rstrip()) -- cgit 1.2.3-korg