From 76f271d0198d88ed62888ebd8603dc27ee1538e3 Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Fri, 6 May 2016 14:35:58 +0300 Subject: [PATCH] Fix output splitting for Python 3 --- remoto/process.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remoto/process.py b/remoto/process.py index 38bc5a2..c604b8f 100644 --- a/remoto/process.py +++ b/remoto/process.py @@ -139,8 +139,8 @@ def _remote_check(channel, cmd, **kw): process = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kw ) - stdout = [line.strip('\n') for line in process.stdout.readlines()] - stderr = [line.strip('\n') for line in process.stderr.readlines()] + stdout = process.stdout.read().splitlines() + stderr = process.stderr.read().splitlines() channel.send((stdout, stderr, process.wait())) -- 2.47.3