From 2efc3712f8fc27134187acf7f72e62bec353b0d7 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Thu, 4 Apr 2024 07:56:51 +0200 Subject: [PATCH] Fix 'invalid escape sequence' warning Backslash in regular expression is best used by writing a raw string. --- src/python/adgui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/adgui.py b/src/python/adgui.py index 6fc6a28e..5f4ac665 100755 --- a/src/python/adgui.py +++ b/src/python/adgui.py @@ -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)