Merge pull request #383 from theAlexes/theAlexes/fix-uf2conv

uf2conv: argument to `re.split` should be a rawstring
This commit is contained in:
atax1a
2024-03-31 00:40:05 +00:00
committed by GitHub

View File

@@ -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: