(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
@@ -138,7 +138,7 @@ class backup_pgsql(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)