Fixed byte string related TypeError if using python3.

pull/11377/head
Dustin Crossman 2019-08-29 10:42:50 -07:00
parent ea582f3e11
commit 006adf3592
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class MSDUtils(object):
@staticmethod
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:
serial_and_mount_point = line.split()
if len(serial_and_mount_point) == 2: