uf2conv: argument to re.split should be a rawstring

This commit is contained in:
Alex Maestas 2024-03-16 16:50:55 +00:00
parent af18673e1a
commit 40b71400c5

View file

@ -180,7 +180,7 @@ def get_drives():
"get", "DeviceID,", "VolumeName,", "get", "DeviceID,", "VolumeName,",
"FileSystem,", "DriveType"]) "FileSystem,", "DriveType"])
for line in to_str(r).split('\n'): 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": if len(words) >= 3 and words[1] == "2" and words[2] == "FAT":
drives.append(words[0]) drives.append(words[0])
else: else: