summaryrefslogtreecommitdiff
path: root/tools/uf2conv.py
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2023-03-10 06:28:44 +0100
committerDamien George <damien@micropython.org>2023-05-02 11:55:02 +1000
commit8f8bd981641e0988b9ed3276c8f2435645269b3f (patch)
tree05bd92798fcf6ea91f02811b4a38f2f4f8737932 /tools/uf2conv.py
parentcda292935dca9df25019168d91b211ad68e2b054 (diff)
all: Fix strings with backslash by using raw string literals.
Diffstat (limited to 'tools/uf2conv.py')
-rw-r--r--tools/uf2conv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/uf2conv.py b/tools/uf2conv.py
index ef3e48144..b66e52876 100644
--- a/tools/uf2conv.py
+++ b/tools/uf2conv.py
@@ -271,7 +271,7 @@ def get_drives():
]
)
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: