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
@@ -147,7 +147,7 @@ class backup_sqlserver(backup_generic):
filelist = os.listdir(self.backup_dir)
filelist.sort()
p = re.compile("^%s-(?P<date>\d{8,8}-\d{2,2}h\d{2,2}m\d{2,2}).bak.gz$" % self.db_name)
p = re.compile(r"^%s-(?P<date>\d{8,8}-\d{2,2}h\d{2,2}m\d{2,2}).bak.gz$" % self.db_name)
for item in filelist:
sr = p.match(item)
if sr: