Skip to content

Commit fc8901c

Browse files
authored
Merge pull request #1752 from tretter/fastboot-fix-getvar-command
driver/fastbootdriver: decode output to str before split
2 parents 05a4eda + 4909e3a commit fc8901c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labgrid/driver/fastbootdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _filter_fastboot_output(output, prefix='(bootloader) '):
5959
Splits output by '\n' and returns only elements starting with prefix. The prefix is
6060
removed.
6161
"""
62-
return [line[len(prefix):] for line in output.split('\n') if line.startswith(prefix)]
62+
return [line[len(prefix):] for line in output.decode().split('\n') if line.startswith(prefix)]
6363

6464
def on_activate(self):
6565
pass

0 commit comments

Comments
 (0)