Sanity improvements

This commit is contained in:
David Duque 2020-04-17 19:54:34 +01:00
parent 51a65a3a22
commit ca3d794c80
No known key found for this signature in database
GPG Key ID: 2F327738A3C0AE3A
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@
def edit_conf(filename, settings, folded_lines, testing):
found = set()
buf = ""
input_lines = list(open(filename))
input_lines = list(open(filename, "r+"))
while len(input_lines) > 0:
line = input_lines.pop(0)
@ -138,5 +138,6 @@ if __name__ == "__main__":
except:
import subprocess
print("Invalid command line: ", subprocess.list2cmdline(sys.argv))
sys.exit(1)
edit_conf(filename, settings, folded_lines, testing)