Newlines removed properly for compatibility

Newlines were removed by stripping '\n' characters, they are now removed
properly using .rsplit() for compatibility with other operating systems.
This commit is contained in:
George Lacey 2016-09-20 09:53:08 +01:00
parent 3f6e163f26
commit 5f91901ae3

View File

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