From 0cfb2c02807cadaf01c7b0ffd71650e1dce54192 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Fri, 6 Aug 2021 12:31:04 +0200 Subject: [PATCH] py3 Popen text mode fix --- vm/kojikamid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/kojikamid.py b/vm/kojikamid.py index 4460e355..b773465c 100755 --- a/vm/kojikamid.py +++ b/vm/kojikamid.py @@ -548,11 +548,11 @@ def run(cmd, chdir=None, fatal=False, log=True): logger = logging.getLogger('koji.vm') logger.info('$ %s', ' '.join(cmd)) proc = subprocess.Popen(cmd, stdout=logfd, stderr=subprocess.STDOUT, - close_fds=True) + close_fds=True, text=True) ret = proc.wait() else: proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, - close_fds=True) + close_fds=True, text=True) output, dummy = proc.communicate() ret = proc.returncode if olddir: