From: Alex Maestas Date: Sat, 16 Mar 2024 16:50:55 +0000 (+0000) Subject: uf2conv: argument to `re.split` should be a rawstring X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=40b71400c5c49d58a1e36286317e350e42f25756;p=sensor-watch.git uf2conv: argument to `re.split` should be a rawstring --- diff --git a/utils/uf2conv.py b/utils/uf2conv.py index 849e649..7263cba 100644 --- a/utils/uf2conv.py +++ b/utils/uf2conv.py @@ -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: