mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +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,",
|
"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:
|
||||||
|
|
Loading…
Reference in a new issue