Skip to content

Commit 7c423db

Browse files
authored
Merge pull request #11377 from dustin-crossman/master
Fixed byte string related TypeError if using python3.
2 parents f35e16e + 006adf3 commit 7c423db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TESTS/host_tests/pyusb_msd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def _disk_path_windows(serial):
197197

198198
@staticmethod
199199
def _disk_path_linux(serial):
200-
output = subprocess.check_output(['lsblk', '-dnoserial,mountpoint']).split('\n')
200+
output = subprocess.check_output(['lsblk', '-dnoserial,mountpoint']).split(b'\n')
201201
for line in output:
202202
serial_and_mount_point = line.split()
203203
if len(serial_and_mount_point) == 2:

0 commit comments

Comments
 (0)