(fix) SyntaxWarning with python 3.12

Changelog of python :
- Invalid backslash escape sequences in strings now warn with SyntaxWarning instead of DeprecationWarning, making them more visible. (They will become syntax errors in the future.)
This commit is contained in:
SeiyaGame
2025-04-09 15:18:02 +02:00
committed by Simon Fonteneau
parent fcdda7826c
commit 338497eb21
8 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -139,7 +139,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: