Fix a few regex warnings

This commit is contained in:
DarkPhoenix
2024-11-09 08:40:55 +01:00
parent fbadcf0af6
commit 401fc671d4
3 changed files with 3 additions and 3 deletions

View File

@@ -544,7 +544,7 @@ def update_db():
continue
typeName = row.get('typeName_en-us', '')
# Regular sets matching
m = re.match('(?P<grade>(High|Mid|Low)-grade) (?P<set>\w+) (?P<implant>(Alpha|Beta|Gamma|Delta|Epsilon|Omega))', typeName, re.IGNORECASE)
m = re.match(r'(?P<grade>(High|Mid|Low)-grade) (?P<set>\w+) (?P<implant>(Alpha|Beta|Gamma|Delta|Epsilon|Omega))', typeName, re.IGNORECASE)
if m:
implantSets.setdefault((m.group('grade'), m.group('set')), set()).add(row['typeID'])
# Special set matching