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:
parent
3f6e163f26
commit
5f91901ae3
2
main.py
2
main.py
|
@ -14,7 +14,7 @@ for i in range(0, len(borg_output)):
|
||||||
if borg_output[i].startswith(key):
|
if borg_output[i].startswith(key):
|
||||||
attributes[key] = borg_output[i] \
|
attributes[key] = borg_output[i] \
|
||||||
.strip(key) \
|
.strip(key) \
|
||||||
.strip("\n")
|
.rstrip()
|
||||||
|
|
||||||
output = open("borg.txt", "w")
|
output = open("borg.txt", "w")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user