From 0e50791a2174ad33c359f2bd30c281f828f2e4a1 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Mon, 20 May 2019 20:01:24 +0200 Subject: [PATCH] print less newlines... --- cronwrapper/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cronwrapper/__init__.py b/cronwrapper/__init__.py index cda5b1c..999dcd9 100755 --- a/cronwrapper/__init__.py +++ b/cronwrapper/__init__.py @@ -150,11 +150,11 @@ def print_runs(runs, clean=True): print("STDOUT:".format(run)) with open(os.path.join(run, 'stdout'), 'r') as f: for line in f: - print(line) + print(line.strip()) print("\nSTDERR:".format(run)) with open(os.path.join(run, 'stderr'), 'r') as f: for line in f: - print(line) + print(line.strip()) print("\n\n") if clean: for run in runs: