mirror of https://github.com/ARMmbed/mbed-os.git
Fixed byte string related TypeError if using python3.
parent
ea582f3e11
commit
006adf3592
|
@ -197,7 +197,7 @@ class MSDUtils(object):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _disk_path_linux(serial):
|
def _disk_path_linux(serial):
|
||||||
output = subprocess.check_output(['lsblk', '-dnoserial,mountpoint']).split('\n')
|
output = subprocess.check_output(['lsblk', '-dnoserial,mountpoint']).split(b'\n')
|
||||||
for line in output:
|
for line in output:
|
||||||
serial_and_mount_point = line.split()
|
serial_and_mount_point = line.split()
|
||||||
if len(serial_and_mount_point) == 2:
|
if len(serial_and_mount_point) == 2:
|
||||||
|
|
Loading…
Reference in New Issue