Merge pull request #11377 from dustin-crossman/master

Fixed byte string related TypeError if using python3.
pull/11441/head
Martin Kojtal 2019-09-09 10:40:06 +02:00 committed by GitHub
commit 7c423db9cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: