Fix re.compile / re.match warnings
lint / docker (push) Has been cancelled

This commit is contained in:
2025-03-07 22:51:20 +01:00
parent da50051a3f
commit b805f8387e
10 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ class backup_switch(backup_generic):
child.expect("#--")
child.expect("#")
child.close()
myre = re.compile("#--+")
myre = re.compile(r"#--+")
config = myre.split(open(filename).read())[2]
with open(filename, "w") as f:
f.write(config)