mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 11:10:29 +08:00
uf2conv: argument to re.split
should be a rawstring
This commit is contained in:
parent
af18673e1a
commit
40b71400c5
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue