From 92f5d7a547ef9b9cbf536ab8b2339c2950cbabb9 Mon Sep 17 00:00:00 2001 From: George Lacey Date: Tue, 20 Sep 2016 09:53:08 +0100 Subject: [PATCH] Remove newlines properly for compatibility Newlines were removed by stripping '\n' characters, they are now removed properly using .rsplit() for compatibility with other operating systems. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 61b0543..dded17e 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,7 @@ for i in range(0, len(borg_output)): if borg_output[i].startswith(key): attributes[key] = borg_output[i] \ .strip(key) \ - .strip("\n") + .rstrip() output = open("borg.txt", "w")