fix warning in uf2conv.py

This commit is contained in:
joeycastillo 2024-07-10 20:23:19 -04:00
parent ded6fa6721
commit 1eeed9cd70

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: