Skip to content

Commit a41618f

Browse files
Make Python3 re.split() use a r-string (#1985)
Fixes #1983
1 parent c095fce commit a41618f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/uf2conv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def get_drives():
261261
print("Unable to build drive list");
262262
sys.exit(1)
263263
for line in to_str(r).split('\n'):
264-
words = re.split('\s+', line)
264+
words = re.split(r'\s+', line)
265265
if len(words) >= 3 and words[1] == "2" and words[2] == "FAT":
266266
drives.append(words[0])
267267
else:

0 commit comments

Comments
 (0)