Commit c86b3888 by Michael DeHaan

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

parent 8d06c074
...@@ -64,8 +64,8 @@ if err is None: ...@@ -64,8 +64,8 @@ if err is None:
err = '' err = ''
result = { result = {
"stdout" : out, "stdout" : out.strip(),
"stderr" : err, "stderr" : err.strip(),
"rc" : cmd.returncode, "rc" : cmd.returncode,
"start" : str(startd), "start" : str(startd),
"end" : str(endd), "end" : str(endd),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment