Strip trailing newlines from command module, which happens in some shell commands

This commit is contained in:
Michael DeHaan 2012-04-04 10:30:22 -04:00
parent 42b3eccbb2
commit 749b00a571

View file

@ -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),