From 749b00a571787d3116f969d2873cebb4aa5ecad9 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 4 Apr 2012 10:30:22 -0400 Subject: [PATCH] Strip trailing newlines from command module, which happens in some shell commands --- command | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command b/command index 3c74cc03b3d..7413db7b94e 100755 --- a/command +++ b/command @@ -64,8 +64,8 @@ if err is None: err = '' result = { - "stdout" : out, - "stderr" : err, + "stdout" : out.strip(), + "stderr" : err.strip(), "rc" : cmd.returncode, "start" : str(startd), "end" : str(endd),