From 40b71400c5c49d58a1e36286317e350e42f25756 Mon Sep 17 00:00:00 2001 From: Alex Maestas Date: Sat, 16 Mar 2024 16:50:55 +0000 Subject: uf2conv: argument to `re.split` should be a rawstring --- utils/uf2conv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/uf2conv.py b/utils/uf2conv.py index 849e6499..7263cba9 100644 --- a/utils/uf2conv.py +++ b/utils/uf2conv.py @@ -180,7 +180,7 @@ def get_drives(): "get", "DeviceID,", "VolumeName,", "FileSystem,", "DriveType"]) for line in to_str(r).split('\n'): - words = re.split('\s+', line) + words = re.split(r'\s+', line) if len(words) >= 3 and words[1] == "2" and words[2] == "FAT": drives.append(words[0]) else: -- cgit v1.2.3