Skip to content

Commit fe4e73d

Browse files
committed
Fixed logger error reporting under python3
1 parent 25f9231 commit fe4e73d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def printtail(out, name, forecolor, tail_n=0,
196196
name, tail_n, len(lines),
197197
forecolor, '\t\n'.join([s.decode('utf-8') for s in lines[-tail_n:]]),
198198
Out_Fore.RESET))
199-
printtail(err.stdout, 'STDOUT', Out_Fore.YELLOW, tail_n,
199+
printtail(err.stdout.decode('utf-8'), 'STDOUT', Out_Fore.YELLOW, tail_n,
200200
re.compile(filter_in) if filter_in else None,
201201
re.compile(filter_out) if filter_out else None)
202202
printtail(err.stderr, 'STDERR', Err_Fore.RED)

0 commit comments

Comments
 (0)