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
@@ -144,7 +144,7 @@ class backup_oracle(backup_generic):
filelist = os.listdir(self.backup_dir)
filelist.sort()
p = re.compile("^\d{8,8}-\d{2,2}h\d{2,2}m\d{2,2}$")
p = re.compile(r"^\d{8,8}-\d{2,2}h\d{2,2}m\d{2,2}$")
for item in filelist:
if p.match(item):
dir_name = os.path.join(self.backup_dir, item)