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
@@ -586,7 +586,7 @@ class backup_generic(ABC):
ssh_port = 22
def __init__(self, backup_name, backup_dir, dbstat=None, dry_run=False):
if not re.match("^[A-Za-z0-9_\-\.]*$", backup_name):
if not re.match(r"^[A-Za-z0-9_\-\.]*$", backup_name):
raise Exception("The backup name %s should contain only alphanumerical characters" % backup_name)
self.backup_name = backup_name
self.backup_dir = backup_dir