src/eric7/MicroPython/Tools/uf2conv.py

branch
eric7
changeset 10162
e7040c88b39e
parent 9915
fd5ff16632cb
equal deleted inserted replaced
10161:b0ccdb47acde 10162:e7040c88b39e
269 "FileSystem,", 269 "FileSystem,",
270 "DriveType", 270 "DriveType",
271 ] 271 ]
272 ) 272 )
273 for line in to_str(r).split("\n"): 273 for line in to_str(r).split("\n"):
274 words = re.split("\s+", line) 274 words = re.split(r"\s+", line)
275 if len(words) >= 3 and words[1] == "2" and words[2] == "FAT": 275 if len(words) >= 3 and words[1] == "2" and words[2] == "FAT":
276 drives.append(words[0]) 276 drives.append(words[0])
277 else: 277 else:
278 rootpath = "/media" 278 rootpath = "/media"
279 if sys.platform == "darwin": 279 if sys.platform == "darwin":

eric ide

mercurial