]> git.earman.xyz Git - sensor-watch.git/commitdiff
uf2conv: argument to `re.split` should be a rawstring
authorAlex Maestas <git@se30.xyz>
Sat, 16 Mar 2024 16:50:55 +0000 (16:50 +0000)
committerAlex Maestas <git@se30.xyz>
Sat, 16 Mar 2024 16:50:55 +0000 (16:50 +0000)
utils/uf2conv.py

index 849e64994e0487313d9158461bd823a090b2c7f4..7263cba9e4c4d32de1e647b26e1e089c90cb2c3a 100644 (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: