From da904e4770a20ae85fc67476ae4a529564d0a3ff Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Mon, 10 May 2021 18:50:59 -0700 Subject: [PATCH] remove final \n from stderr string when printing --- jc/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/cli.py b/jc/cli.py index 8c95fa0d..05e41e20 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -495,7 +495,7 @@ def main(): if valid_command: magic_stdout, magic_stderr, magic_exit_code = run_user_command(run_command) if magic_stderr: - print(magic_stderr, file=sys.stderr) + print(magic_stderr[:-1], file=sys.stderr) elif run_command is None: pass else: