Fix 'invalid escape sequence' warning

Backslash in regular expression is best used by writing a raw
string.
This commit is contained in:
Joerg Wunsch
2024-04-04 07:56:51 +02:00
parent ccaa3ddae7
commit 2efc3712f8

View File

@@ -147,7 +147,7 @@ def classify_devices():
'avr_de': [],
'other': []
}
avr_de_re = re.compile('AVR\d+[DE][A-Z]\d+')
avr_de_re = re.compile(r'AVR\d+[DE][A-Z]\d+')
part = ad.lfirst(ad.cvar.part_list)
while part:
p = ad.ldata_avrpart(part)